Opened 5 years ago

Last modified 5 years ago

#58331 assigned defect

Tensorflow freezes — at Version 1

Reported by: ptighin Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: Cc: emcrisostomo@…, jonesc@…
Port: py-tensorflow

Description (last modified by ptighin)

The macports version of tensorflow (both py36-tensorflow and py37-tensorflow) freezes when running a very simple script, e.g.,

import tensorflow as tf
a = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[2, 3], name='a')

I don't think the problem lies in the tensorflow binary itself but rather somewhere in its dependencies. Evidence: installing the tensorflow binary with pip (with all other dependencies still from macports) does not solve the issue.

The issue is solved only when I create a clean virtual environment and install everything with pip.

I've done a bit of research and it turns out that the execution freezes when running

  const_tensor = g.create_op(
      "Const", [], [dtype_value.type],
      attrs={"value": tensor_value,
             "dtype": dtype_value},
      name=name).outputs[0]

inside the file /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tensorflow/python/framework/constant_op.py.

The tensorflow version is py37-tensorflow @1.13.1.

Change History (1)

comment:1 Changed 5 years ago by ptighin

Description: modified (diff)
Note: See TracTickets for help on using tickets.