出现上面的错误
将语句 X=tf.placeholder(“float”) Y=tf.placeholder(“float”)
改为:X=tf.compat.v1.placeholder(“float”)
Y=tf.compat.v1.placeholder(“float”)
编译通过
最有效AttributeError: module 'tensorflow' has no attribute 'placeholder'解决办法
猜你喜欢
转载自blog.csdn.net/D_Katter/article/details/102761628
今日推荐
周排行