深度学习报错集合(自用>>>持续更新)
作者:互联网
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()
标签:unexpected,Tensor,int,session,自用,集合,报错,float32 来源: https://blog.csdn.net/qq_59068750/article/details/122162858