Open jesusdelpeso opened 5 years ago
same error
I'm having this issue as well.
I'm having this issue too.
I fixed the problem by installing 1.13.4 version of tensor2tensor
!pip install tensor2tensor==1.13.4
I fixed the problem by installing 1.13.4 version of tensor2tensor
!pip install tensor2tensor==1.13.4
!pip install tensor2tensor==1.14.0
seems to work as well. I think that the problem is with version 1.14.1
, which is both the latest version and the one that's preinstalled on Colaboratory.
I fixed the problem by installing 1.15.0 version of tensor2tensor.
mesh-tensorflow==0.1.6 tensor2tensor==1.15.0 tensorboard==1.15.0 tensorboard-logger==0.1.0 tensorboardX==1.8 tensorflow-datasets==1.3.0 tensorflow-estimator==1.15.1 tensorflow-gan==2.0.0 tensorflow-gpu==1.15.0 tensorflow-hub==0.7.0 tensorflow-metadata==0.15.1 tensorflow-probability==0.7.0
Same setup as above gives error:
AttributeError Traceback (most recent call last)
AttributeError: module 'tensorflow' has no attribute 'gfile'
`import tensorflow as tf import os
DATA_DIR = os.path.expanduser("/t2t/data") # This folder contain the data TMP_DIR = os.path.expanduser("/t2t/tmp") TRAIN_DIR = os.path.expanduser("/t2t/train") # This folder contain the model EXPORT_DIR = os.path.expanduser("/t2t/export") # This folder contain the exported model for production TRANSLATIONS_DIR = os.path.expanduser("/t2t/translation") # This folder contain all translated sequence EVENT_DIR = os.path.expanduser("/t2t/event") # Test the BLEU score USR_DIR = os.path.expanduser("/t2t/user") # This folder contains our data that we want to add
tf.gfile.MakeDirs(DATA_DIR) tf.gfile.MakeDirs(TMP_DIR) tf.gfile.MakeDirs(TRAIN_DIR) tf.gfile.MakeDirs(EXPORT_DIR) tf.gfile.MakeDirs(TRANSLATIONS_DIR) tf.gfile.MakeDirs(EVENT_DIR) tf.gfile.MakeDirs(USR_DIR)`
Description
The
t2t-trainer
command fails to run.Environment information
For bugs: reproduction and error logs