SOLUTION: see https://github.com/tensorflow/tensor2tensor/issues/1849
Installing it directly from git and then changing the files in which the code still wasn't adapted (import tensorflow.compat.v1 as tf) fixed the issue.
When trying to use the t2t-decoder on a transformer model, I get the following error:
Traceback (most recent call last):
File "/usr/local/bin/t2t-decoder", line 16, in
tf.logging.set_verbosity(tf.logging.INFO)
AttributeError: module 'tensorflow' has no attribute 'logging'
I know T2T is not supposed to be compatible with TF2+, but what I dont understand why only decoder is throwing out this error? I was able to get the data and train my model without any problems using TF2.4.
Is there any reason why this particular code gets this error? And is there a way to disable it/modify it?
Description
SOLUTION: see https://github.com/tensorflow/tensor2tensor/issues/1849 Installing it directly from git and then changing the files in which the code still wasn't adapted (import tensorflow.compat.v1 as tf) fixed the issue.
When trying to use the t2t-decoder on a transformer model, I get the following error: Traceback (most recent call last): File "/usr/local/bin/t2t-decoder", line 16, in
tf.logging.set_verbosity(tf.logging.INFO)
AttributeError: module 'tensorflow' has no attribute 'logging'
I know T2T is not supposed to be compatible with TF2+, but what I dont understand why only decoder is throwing out this error? I was able to get the data and train my model without any problems using TF2.4.
Is there any reason why this particular code gets this error? And is there a way to disable it/modify it?