[MacPorts] #58331: Tensorflow freezes
MacPorts
noreply at macports.org
Fri Apr 12 09:57:55 UTC 2019
#58331: Tensorflow freezes
------------------------------+--------------------
Reporter: ptighin | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: py37-tensorflow |
------------------------------+--------------------
Description changed by ptighin:
Old description:
> 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}}}.
New description:
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}}}.
--
--
Ticket URL: <https://trac.macports.org/ticket/58331#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list