Tile¶
Tile - 13¶
版本¶
名稱: Tile (GitHub)
網域:
main
since_version:
13
function:
False
support_level:
SupportType.COMMON
形狀推斷:
True
此版本的運算子自版本 13 起可用。
摘要¶
透過平鋪給定的張量來建構張量。這與 Numpy 中的函式 tile
相同,但不進行廣播。例如,A = [[1, 2], [3, 4]],B = [1, 2],tile(A, B) = [[1, 2, 1, 2], [3, 4, 3, 4]]
輸入¶
輸入 (異質) - T
任何形狀的輸入張量。
重複次數 (異質) - T1
與輸入的維度數量長度相同的 1D int64 張量,包括沿著輸入維度重複的副本數量。
輸出¶
輸出 (異質) - T
輸出張量的維度和類型與張量輸入相同。output_dim[i] = input_dim[i] * repeats[i]
類型約束¶
T in (
tensor(bfloat16)
,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)
)將輸入和輸出類型限制為所有張量類型。
T1 in (
tensor(int64)
)將重複次數的類型限制為 int64 張量。
Tile - 6¶
版本¶
名稱: Tile (GitHub)
網域:
main
since_version:
6
function:
False
support_level:
SupportType.COMMON
形狀推斷:
True
此版本的運算子自版本 6 起可用。
摘要¶
透過平鋪給定的張量來建構張量。這與 Numpy 中的函式 tile
相同,但不進行廣播。例如,A = [[1, 2], [3, 4]],B = [1, 2],tile(A, B) = [[1, 2, 1, 2], [3, 4, 3, 4]]
輸入¶
輸入 (異質) - T
任何形狀的輸入張量。
重複次數 (異質) - T1
與輸入的維度數量長度相同的 1D int64 張量,包括沿著輸入維度重複的副本數量。
輸出¶
輸出 (異質) - T
輸出張量的維度和類型與張量輸入相同。output_dim[i] = input_dim[i] * repeats[i]
類型約束¶
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)
)將輸入和輸出類型限制為所有張量類型。
T1 in (
tensor(int64)
)將重複次數的類型限制為 int64 張量。
Tile - 1¶
版本¶
名稱: Tile (GitHub)
網域:
main
since_version:
1
function:
False
support_level:
SupportType.COMMON
形狀推斷:
True
此運算子的版本從版本 1 開始提供。
摘要¶
沿著軸重複張量的元素。
輸入¶
輸入 (異質) - T
任何形狀的輸入張量。
tiles (異質) - T
輸入張量要製作的重複副本數。
axis (異質) - T
要沿著重複的軸。
輸出¶
輸出 (異質) - T
與輸入具有相同形狀和類型的輸出張量。
類型約束¶
T in (
tensor(double)
,tensor(float)
,tensor(float16)
)將輸入類型限制為浮點張量。
T1 in (
tensor(int64)
)將 tiles 和 axis 的類型限制為 int64 張量。