Tile¶
Tile - 13¶
版本¶
名称: Tile (GitHub)
域:
main
起始版本:
13
函数:
False
支持级别:
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
任何形状的输入张量。
repeats (异构) - T1
与输入维度数量相同的一维 int64 张量,包含沿输入维度重复的副本数量。
输出¶
输出 (异构) - T
与输入张量具有相同维度和类型的输出张量。output_dim[i] = input_dim[i] * repeats[i]
类型约束¶
T 在 (
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 在 (
tensor(int64)
)将 repeat 的类型限制为 int64 张量。
Tile - 6¶
版本¶
名称: Tile (GitHub)
域:
main
起始版本:
6
函数:
False
支持级别:
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
任何形状的输入张量。
repeats (异构) - T1
与输入维度数量相同的一维 int64 张量,包含沿输入维度重复的副本数量。
输出¶
输出 (异构) - T
与输入张量具有相同维度和类型的输出张量。output_dim[i] = input_dim[i] * repeats[i]
类型约束¶
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)
)将输入和输出类型限制为所有张量类型。
T1 在 (
tensor(int64)
)将 repeat 的类型限制为 int64 张量。
Tile - 1¶
版本¶
名称: Tile (GitHub)
域:
main
起始版本:
1
函数:
False
支持级别:
SupportType.COMMON
形状推断:
True
此版本的运算符自 版本 1 起可用。
摘要¶
沿轴重复张量的元素。
输入¶
输入 (异构) - T
任何形状的输入张量。
tiles (异构) - T
要创建的输入张量副本的数量。
axis (异构) - T
沿哪个轴进行重复。
输出¶
输出 (异构) - T
与输入具有相同形状和类型的输出张量。
类型约束¶
T 在 (
tensor(double)
,tensor(float)
,tensor(float16)
)将输入类型限制为浮点张量。
T1 在 (
tensor(int64)
)将 tiles 和 axis 的类型限制为 int64 张量。