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. 展开
 我来答
匿名用户
2018-02-23
展开全部
改成 tf.concat([t_z, captcha_text_embedding],1)即可
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
pieryon
2018-02-18 · 知道合伙人数码行家
pieryon
知道合伙人数码行家
采纳数:14410 获赞数:166873
获取软件设计师高级职称 万达金融最佳创新奖

向TA提问 私信TA
展开全部
版本问题,建议升级
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 2条折叠回答
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式