标题

Tile - 13

版本

  • 名称: Tile (GitHub)

  • 域名: main

  • since_version: 13

  • 函数: 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:

    输入任意形状的张量。

  • repeats (异构) - T1:

    与输入维度数长度相同的1D 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) ) 中:

    将重复的类型限制为int64张量。

Tile - 6

版本

  • 名称: Tile (GitHub)

  • 域名: main

  • since_version: 6

  • 函数: 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:

    输入任意形状的张量。

  • repeats (异构) - T1:

    1D 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) ) 中:

    将重复的类型限制为int64张量。

标题 - 1

版本

  • 名称: Tile (GitHub)

  • 域名: main

  • since_version: 1

  • 函数: False

  • support_level: SupportType.COMMON

  • 形状推断: True

此版本的运算符自版本1起可用。

摘要

沿着一个轴重复张量的元素。

输入

  • 输入 (异构) - T:

    输入任意形状的张量。

  • tiles (异质的) - T:

    输入张量的重复副本数量。

  • axis (异构) - T:

    沿着哪个轴重复。

输出

  • 输出 (异构) - T:

    输出张量与输入张量具有相同的形状和类型。

类型约束

  • T 在 ( tensor(double), tensor(float), tensor(float16) ) 中:

    将输入类型限制为浮点张量。

  • T1 在 ( tensor(int64) ) 中:

    将瓦片和轴的类型限制为int64张量。