原
X = tf.placeholder(tf.float32, shape=[None, dim])
修改后
tf.compat.v1.disable_eager_execution()
X = tf.compat.v1.placeholder(tf.float32, shape=[None, dim])
原
X = tf.placeholder(tf.float32, shape=[None, dim])
修改后
tf.compat.v1.disable_eager_execution()
X = tf.compat.v1.placeholder(tf.float32, shape=[None, dim])