Thank you i did update right in pywrap_tensorflow_internal.py async for async1, and woks !!. Hi guys i have the same problem, i just did install tensor to mac sierra 12.10.6 im using python3 andįile "/Users/juaporra/Library/Python/3.7/lib/python/site-packages/tensorflow/ init.py", line 22, inįile "/Users/juaporra/Library/Python/3.7/lib/python/site-packages/tensorflow/python/ init.py", line 49, inįile "/Users/juaporra/Library/Python/3.7/lib/python/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, inįile "/Users/juaporra/Library/Python/3.7/lib/python/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 114ĭef TFE_ContextOptionsSetAsync(arg1, async): TFE_ContextOptionsSetAsync = _pywrap_tensorflow_internal.TFE_ContextOptionsSetAsync Return _pywrap_tensorflow_internal.TFE_ContextOptionsSetAsync(arg1, async1) ![]() Line 114, 115, 150 of pywrap_tensorflow_internal.py has "async" as parameter which seems to be a keyword.Īfter changed to "async1", importing tensorflow works.ĭef TFE_ContextOptionsSetAsync(arg1, async1): ![]() Synta圎rror: invalid syntax Source code / logs When import tensorflow in python3 prompt, it says "Synta圎rror: invalid syntax".įile "/usr/local/lib/python3.7/site-packages/tensorflow/ init.py", line 22, inįrom tensorflow.python import pywrap_tensorflow # pylint: disable=unused-importįile "/usr/local/lib/python3.7/site-packages/tensorflow/python/ init.py", line 49, inįrom tensorflow.python import pywrap_tensorflowįile "/usr/local/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, inįrom _tensorflow_internal import *įile "/usr/local/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 114ĭef TFE_ContextOptionsSetAsync(arg1, async):_ TensorFlow installed from (source or binary): OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |