[英]no attribute 'contrib' for problems()
I am trying to see the available problems() but it is giving Error.我正在尝试查看可用的问题(),但它给出了错误。 Can you please let me know if I am missing anything
如果我遗漏了什么,你能告诉我吗
>>> from tensor2tensor import problems
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\\Anaconda3\lib\site-packages\tensor2tensor\problems.py", line 22, in <module>
from tensor2tensor.utils import registry
File "C:\Users\\Anaconda3\lib\site-packages\tensor2tensor\utils\registry.py", line 551, in <module>
attacks = tf.contrib.framework.deprecated(None, "Use registry.attack")(attack)
AttributeError: module 'tensorflow' has no attribute 'contrib'
>>> tf.__version__
'2.0.0-beta1'
>>>
I am working on windows我正在研究 windows
Tensor2Tensor library is not yet compatible with Tensorflow 2.0 because it still uses a lot of deprecated APIs. Tensor2Tensor 库尚未与 Tensorflow 2.0 兼容,因为它仍然使用许多已弃用的 API。 Your only option currently is to downgrade to an older version, such as Tensorflow 1.15.
您目前唯一的选择是降级到旧版本,例如 Tensorflow 1.15。
pip3 install tensorflow==1.15.0
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.