这两天跑了份代码,基于TensorFlow的,官方文档没给出具体环境,在issue里写的代码环境是python2。TensorFlow1.2。但是这两台机器cuda都是9以上,不支持老版本的TensorFlow。所以本实验是在TensorFlow1.5上测试通过,碰到具体如下的bug:
PS:TensorFlow的更新是在太乱了,各种api都变掉了,没有继承性
debug过程:
错误1:ValueError: Only call `sparse_softmax_cross_entropy_with_logits` with named arguments (labels=..., logits=..., ...)
错误2:
TypeError: Expected int32, got list containing Tensors of type '_Message' instead.
调换一下位子
错误3:
AttributeError: 'module' object has no attribute 'pack'#7550
错误4:split
rgb和3调换一下即可