SequenceErase¶
SequenceErase - 11¶
版本¶
網域:
main
since_version:
11
function:
False
support_level:
SupportType.COMMON
形狀推斷:
True
此運算子的版本自版本 11 起可用。
摘要¶
輸出一個張量序列,從 ‘input_sequence’ 中移除 ‘position’ 處的張量。‘position’ 的可接受範圍在 [-n, n - 1]
中,其中 n
是 ‘input_sequence’ 中的張量數量。負值表示從後方計算位置。‘position’ 是可選的,預設會從 ‘input_sequence’ 中刪除最後一個張量。
輸入¶
1 到 2 個輸入之間。
input_sequence (異質) - S
輸入序列。
position (可選,異質) - I
序列中張量的位置。負值表示從後方計算位置。可接受的範圍在
[-n, n - 1]
中,其中n
是 ‘input_sequence’ 中張量的數量。如果任何索引值超出範圍,則會發生錯誤。它必須是純量 (空形狀的張量)。
輸出¶
output_sequence (異質) - S
已移除指定位置的張量的輸出序列。
類型限制¶
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))
) 中限制為任何張量類型。
I 在 (
tensor(int32)
,tensor(int64)
) 中將位置限制為整數張量。它必須是純量(空形狀的張量)。