【发布时间】:2020-09-16 09:36:42
【问题描述】:
我有两个 EagerTensor 类型:
<class 'tensorflow.python.framework.ops.EagerTensor'>
尺寸为(64, 100) 的张量1 和尺寸为(64, 10) 的张量2。 我希望输出在维度 (64, 110) 中。 我试过了:
tf.concat(axis=1, values = [tensor1, tensor2])
遇到错误:
InvalidArgumentError: cannot compute ConcatV2 as input #1(zero-based) was expected to be a uint8 tensor but is a float tensor [Op:ConcatV2] name: concat
但不起作用,请帮助。
【问题讨论】:
-
明白了,谢谢@GPhilo
标签: python tensorflow tensor