Tensorflow
1、IndentationError: unexpected indent
代码缩进有问题
2、TypeError: Fetch argument 5 has invalid type <class 'int'>, must be a string or Tensor. (Can not convert a int into a Tensor or Operation.)
把int32 换成float32
3、Tensor("Add:0", shape=(), dtype=float32)
因为你还没输出
session = tf.compat.v1.Session()
print(session.run(y))
session.close()