![](/img/trans.png)
[英]ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type int). Tensorflow 1.15 runs. Tensorflow 2.x breaks
[英]Downgrade from Tensorflow 2.x to 1.15
我遇到了无法降级到 tensorflow 1.15 的问题。
到目前为止,我拥有最新版本的 tf,但我遇到了“AttributeError module 'tensorflow' has no attribute 'contrib''
错误。 我读过这可以通过降级到 tf 1.15 来解决,但是当我运行pip3 install tensorflow==1.15
我得到这个: "ERROR: Could not find a version that satisfies the requirement tensorflow==1.15 (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.2.1, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1, 2.4.0rc0, 2.4.0rc1, 2.4.0rc2, 2.4.0rc3)
错误: No matching distribution found for tensorflow==1.15"
我应该怎么做才能修复我的属性错误?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.