tensorflow 报错,求解决
Traceback(mostrecentcalllast):File"C:\Users\Administrator\Desktop\tensorflow\2018.1.1...
Traceback (most recent call last): File "C:\Users\Administrator\Desktop\tensorflow\2018.1.17~20\cs\cnn.py", line 255, in <module> train() File "C:\Users\Administrator\Desktop\tensorflow\2018.1.17~20\cs\cnn.py", line 192, in train fake_image = generator(t_z, t_text, is_training=True) File "C:\Users\Administrator\Desktop\tensorflow\2018.1.17~20\cs\cnn.py", line 43, in generator z_concat = tf.concat(1, [t_z, captcha_text_embedding]) # (batch_size, 100) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\ops\array_ops.py", line 1096, in concat dtype=dtypes.int32).get_shape().assert_is_compatible_with( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\framework\ops.py", line 836, in convert_to_tensor as_ref=False) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\framework\ops.py", line 926, in internal_convert_to_tensor ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\framework\constant_op.py", line 229, in _constant_tensor_conversion_function return constant(v, dtype=dtype, name=name) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\framework\constant_op.py", line 208, in constant value, dtype=dtype, shape=shape, verify_shape=verify_shape)) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\framework\tensor_util.py", line 383, in make_tensor_proto _AssertCompatible(values, dtype) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\framework\tensor_util.py", line 303, in _AssertCompatible (dtype.name, repr(mismatch), type(mismatch).__name__))TypeError: Expected int32, got list containing Tensors of type '_Message' instead.
展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |