ConcatFromSequence¶
ConcatFromSequence - 11¶
版本¶
域:
main起始版本:
11函数:
False支持级别:
SupportType.COMMON形状推断:
True
此版本的运算符自 版本 11 起可用。
摘要¶
将张量序列连接成单个张量。所有输入张量必须具有相同的形状,除了要连接的轴的维度大小。默认情况下,“new_axis”为 0,其行为类似于 numpy.concatenate。当“new_axis”为 1 时,其行为类似于 numpy.stack。
属性¶
轴 - INT (必需)
连接的轴。接受范围为
[-r, r - 1],其中r是输入张量的秩。当new_axis为 1 时,接受范围为[-r - 1, r]。new_axis - INT (默认为
'0')是否在新的轴上插入和连接,默认 0 表示不插入新的轴。
输入¶
input_sequence (异构) - S
用于连接的张量序列
输出¶
concat_result (异构) - T
连接后的张量
类型约束¶
S 在 (
seq(tensor(bool)),seq(tensor(complex128)),seq(tensor(complex64)),seq(tensor(double)),seq(tensor(float)),seq(tensor(float16)),seq(tensor(int16)),seq(tensor(int32)),seq(tensor(int64)),seq(tensor(int8)),seq(tensor(string)),seq(tensor(uint16)),seq(tensor(uint32)),seq(tensor(uint64)),seq(tensor(uint8)))将输入类型限制为任何张量类型。
T 在 (
tensor(bool),tensor(complex128),tensor(complex64),tensor(double),tensor(float),tensor(float16),tensor(int16),tensor(int32),tensor(int64),tensor(int8),tensor(string),tensor(uint16),tensor(uint32),tensor(uint64),tensor(uint8))将输出类型限制为任何张量类型。