tensor2tensor icon indicating copy to clipboard operation
tensor2tensor copied to clipboard

Tensorflow Requirements

Open PatternAlpha opened this issue 4 years ago • 1 comments

Hello, I love what Tensor2Tensor is doing. I have a general question: what is the recommanded Tensorflow version? The turorials are unsing TF1: https://github.com/tensorflow/tensor2tensor/blob/master/tensor2tensor/notebooks/Transformer_translate.ipynb

Further more, If i use the Terminal, datagen gen requires Datasets from TF2.

t2t-datagen \
  --data_dir=$DATA_DIR \
  --tmp_dir=$TMP_DIR \
  --problem=$PROBLEM \
  --t2t_usr_dir=$USR_DIR

but after training, then if i try to predict using...

t2t-trainer \
  --data_dir=$DATA_DIR \
  --problem=$PROBLEM \
  --model=$MODEL \
  --hparams_set=$HPARAMS \
  --output_dir=$TRAIN_DIR

... I get an TF1 related error: module 'tensorflow' has no attribute 'logging'

Am I missing something obvios? Thank you in advance!

PatternAlpha avatar Oct 17 '20 07:10 PatternAlpha

^BUMP ON THIS

manuelblancovalentin avatar Mar 06 '21 04:03 manuelblancovalentin