AttributeError: module 'tensorflow' has no attribute 'placeholder'等一系列tensorflow版本导致的问题
生活随笔
收集整理的這篇文章主要介紹了
AttributeError: module 'tensorflow' has no attribute 'placeholder'等一系列tensorflow版本导致的问题
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
新人tensorflow2.1版本導(dǎo)致程序我無(wú)法運(yùn)行最簡(jiǎn)單的辦法
法1 tensorflow.compat.v1
import tensorflow.compat..v1 as tf tf.disable_v2_behavior()親測(cè)不好用
法2 卸載2.1,安裝老版本
在Terminal界面輸入
pip uninstall tensorflow接著輸入Y確定卸載。
安裝tensorflow舊版本
右下角Specify version選版本
總結(jié)
以上是生活随笔為你收集整理的AttributeError: module 'tensorflow' has no attribute 'placeholder'等一系列tensorflow版本导致的问题的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 二类医疗器械备案目录(二类医疗器械备案表
- 下一篇: word中一直提示校对错误,如何关闭当前