Python报错 | AttributeError: module 'tensorflow._api.v2.data' has no attribute 'AUTOTUNE'

报错信息

AttributeError: module 'tensorflow._api.v2.data' has no attribute 'AUTOTUNE'

解决办法

pip install -i https://pypi.douban.com/simple tensorflow==2.5

原因是:tensorflow版本的问题。

posted @ 2023-06-29 16:38  反神经全栈  阅读(209)  评论(0)    收藏  举报