我试图看到可用的问题(),但它正在产生错误。如果我错过了什么,请告诉我好吗?
>>> 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'
>>>我在修窗户
发布于 2019-11-19 04:26:24
Tensor2Tensor库,因为它仍然使用很多不推荐的API。您目前唯一的选择是降级到较旧的版本,例如Tensorflow 1.15。
pip3 install tensorflow==1.15.0https://stackoverflow.com/questions/58001318
复制相似问题