ConcatFromSequence¶
ConcatFromSequence - 11¶
版本¶
網域:
main
since_version:
11
function:
False
support_level:
SupportType.COMMON
形狀推論:
True
此版本的運算子自版本 11起可用。
摘要¶
將一序列的張量串連成單一張量。所有輸入張量必須具有相同的形狀,除了要串連的軸的維度大小之外。預設情況下,'new_axis' 為 0,行為類似於 numpy.concatenate。當 'new_axis' 為 1 時,行為類似於 numpy.stack。
屬性¶
axis - INT (必要)
要在哪個軸上串連。接受範圍在
[-r, r - 1]
中,其中r
是輸入張量的秩。當new_axis
為 1 時,接受範圍為[-r - 1, r]
。new_axis - INT (預設為
'0'
)是否在新軸上插入和串連,預設值 0 表示不插入新軸。
輸入¶
input_sequence (異質) - S
用於串連的張量序列
輸出¶
concat_result (異質) - T
串連後的張量
類型約束¶
S in (
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 in (
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)
)將輸出類型限制為任何張量類型。