SequenceAt¶
SequenceAt - 11¶
版本¶
網域:
main
since_version:
11
函數:
False
支援等級:
SupportType.COMMON
形狀推論:
True
此版本的運算子已於版本 11 提供。
摘要¶
從 ‘input_sequence’ 中 ‘position’ 位置的張量輸出一個張量副本。‘position’ 的可接受範圍為 [-n, n - 1]
,其中 n
是 ‘input_sequence’ 中的張量數量。負值表示從後面計算位置。
輸入¶
input_sequence (異質) - S
輸入序列。
position (異質) - I
序列中張量的位置。負值表示從後面計算位置。可接受範圍為
[-n, n - 1]
,其中n
是 ‘input_sequence’ 中的張量數量。如果任何索引值超出範圍,則會發生錯誤。它必須是純量(空形狀的張量)。
輸出¶
張量 (異質) - 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)
)限制為任何張量類型。
I 在 (
tensor(int32)
,tensor(int64)
)將位置限制為整數張量。它必須是純量(空形狀的張量)。