Tensorflow实现基于CNN的MNIST的手写数字识别遇到的坑(spyder3)

1.tensorflow2.1的版本问题 module 'tensorflow' has no attribute 'placeholder' 运行报错:tensorflow没有placeholder函数javascript 解决方法:html import tensorflow as tf 替换成 import tensorflow.campat.v1 as tf tf.disable_v2_b
相关文章
相关标签/搜索