简体   繁体   English

问题()没有属性“贡献”

[英]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.

相关问题 模块 tensorflow 没有属性 contrib - module tensorflow has no attribute contrib AttributeError:&#39;module&#39;对象没有属性&#39;contrib&#39; - AttributeError: 'module' object has no attribute 'contrib' 模块“tensorflow”没有属性“contrib”,而 - module 'tensorflow' has no attribute 'contrib' while 如何将“contrib”属性添加到模块 tensorflow 2.9 中? - How to add 'contrib' attribute into module tensorflow 2.9? 在 Visual Studio 2019 的 windows 中使用 CMake 构建 openCV 的问题 - Problems building openCV with contrib using CMake in windows for visual studio 2019 AttributeError:模块&#39;tensorflow.contrib.learn&#39;没有属性&#39;TensorFlowDNNClassifier&#39; - AttributeError: module 'tensorflow.contrib.learn' has no attribute 'TensorFlowDNNClassifier' 模块&#39;tensorflow.contrib.learn&#39;没有属性&#39;python&#39; - module 'tensorflow.contrib.learn' has no attribute 'python' AttributeError:模块“ tensorflow.contrib”没有属性“ estimator” - AttributeError: module 'tensorflow.contrib' has no attribute 'estimator' Django&#39;django.contrib.auth.views&#39;没有属性&#39;login&#39; - Django, 'django.contrib.auth.views' has no attribute 'login' 为什么“django.contrib.admin.sites”没有“注册”属性? - Why 'django.contrib.admin.sites' has no attribute 'register'?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM