-
Notifications
You must be signed in to change notification settings - Fork 3.6k
AttributeError: module 'tensorflow' has no attribute 'flags' #1754
Comments
Maybe T2T doesn't support tensorflow2.0 yet. |
https://www.tensorflow.org/api_docs/python/tf/compat/v1/flags/Flag |
Seems like there's a 'v1' in it for TF 2.0: |
i get this error in tf 1.13.1. what is the issue? |
I had met same error in tf1.13 , have you solved this error? |
I had the same error in tf 1.13.1, and solved it by renaming my own module which has the same name with a site package (logging) |
I had some local (non-Conda) Tensorflow packages still installed, which were higher priority in the python environment Just rm -r each tensorflow package in your ~/.local/ library and reinstall the conda environment. |
|
I had the same error did you solved this? |
Actually, it is tf.compat.v1.flags |
Description
Environment information
$ python -V
Python 3.7.4
$ conda info
Steps to reproduce:
With tensorflow-gpu-nightly installed on a win10 64 bit - simply navigate to
\Anaconda3\Lib\site-packages\tensor2tensor\bin
and type
python t2t_{{any_file}}.py
Error logs:
The text was updated successfully, but these errors were encountered: