tensorflow2.0 tf.placeholder报错
若报错可以使用import tensorflow as tftf.compat.v1.disable_eager_execution()来代替import tensorflow as tf并且后面的Placehoder函数用下面的tf来代替X = tf.compat.v1.placeholder(tf.float32)Y = tf.compat.v1.placeholder(tf.float32)...
原创
2021-12-01 19:32:28 ·
2832 阅读 ·
0 评论