Opened 6 years ago
Last modified 6 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
.