【发布时间】:2019-09-18 22:06:45
【问题描述】:
我正在尝试查看可用的问题(),但它给出了错误。 如果我遗漏了什么,请告诉我
>>> 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'
>>>
我在 Windows 上工作
【问题讨论】:
标签: python tensorflow nlp tensor2tensor