Transpose

Transpose - 23

版本

  • 名称: Transpose (GitHub)

  • : main

  • since_version: 23

  • 函数: False

  • 支持级别: SupportType.COMMON

  • 形状推断: True

此版本的算子自版本 23 起可用。

摘要

转置输入张量,类似于 numpy.transpose。例如,当 perm=(1, 0, 2) 时,给定形状为 (1, 2, 3) 的输入张量,输出形状将为 (2, 1, 3)。

属性

  • perm - INTS :

    一个整数列表。默认情况下,颠倒维度;否则,根据给定的值置换轴。其长度必须等于输入张量的秩。

输入

  • data (异构) - T

    一个输入张量。

输出

  • 转置后 (异构) - T

    转置后的输出。

类型约束

  • T 在 ( tensor(bfloat16), tensor(bool), tensor(complex128), tensor(complex64), tensor(double), tensor(float), tensor(float16), tensor(float4e2m1), tensor(float8e4m3fn), tensor(float8e4m3fnuz), tensor(float8e5m2), tensor(float8e5m2fnuz), tensor(int16), tensor(int32), tensor(int4), tensor(int64), tensor(int8), tensor(string), tensor(uint16), tensor(uint32), tensor(uint4), tensor(uint64), tensor(uint8) ) 中的所有张量类型。

    将输入和输出类型约束为所有张量类型。

Transpose - 21

版本

  • 名称: Transpose (GitHub)

  • : main

  • since_version: 21

  • 函数: False

  • 支持级别: SupportType.COMMON

  • 形状推断: True

此版本的算子自版本 21 起可用。

摘要

转置输入张量,类似于 numpy.transpose。例如,当 perm=(1, 0, 2) 时,给定形状为 (1, 2, 3) 的输入张量,输出形状将为 (2, 1, 3)。

属性

  • perm - INTS :

    一个整数列表。默认情况下,颠倒维度;否则,根据给定的值置换轴。其长度必须等于输入张量的秩。

输入

  • data (异构) - T

    一个输入张量。

输出

  • 转置后 (异构) - T

    转置后的输出。

类型约束

  • T 在 ( tensor(bfloat16), tensor(bool), tensor(complex128), tensor(complex64), tensor(double), tensor(float), tensor(float16), tensor(float8e4m3fn), tensor(float8e4m3fnuz), tensor(float8e5m2), tensor(float8e5m2fnuz), tensor(int16), tensor(int32), tensor(int4), tensor(int64), tensor(int8), tensor(string), tensor(uint16), tensor(uint32), tensor(uint4), tensor(uint64), tensor(uint8) )

    将输入和输出类型约束为所有张量类型。

Transpose - 13

版本

  • 名称: Transpose (GitHub)

  • : main

  • since_version: 13

  • 函数: False

  • 支持级别: SupportType.COMMON

  • 形状推断: True

此版本的算子自版本 13 起可用。

摘要

转置输入张量,类似于 numpy.transpose。例如,当 perm=(1, 0, 2) 时,给定形状为 (1, 2, 3) 的输入张量,输出形状将为 (2, 1, 3)。

属性

  • perm - INTS :

    一个整数列表。默认情况下,颠倒维度;否则,根据给定的值置换轴。

输入

  • data (异构) - T

    一个输入张量。

输出

  • 转置后 (异构) - T

    转置后的输出。

类型约束

  • 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) )

    将输入和输出类型约束为所有张量类型。

Transpose - 1

版本

  • 名称: Transpose (GitHub)

  • : main

  • since_version: 1

  • 函数: False

  • 支持级别: SupportType.COMMON

  • 形状推断: True

此版本的算子自版本 1 起可用。

摘要

转置输入张量,类似于 numpy.transpose。例如,当 perm=(1, 0, 2) 时,给定形状为 (1, 2, 3) 的输入张量,输出形状将为 (2, 1, 3)。

属性

  • perm - INTS :

    一个整数列表。默认情况下,颠倒维度;否则,根据给定的值置换轴。

输入

  • data (异构) - T

    一个输入张量。

输出

  • 转置后 (异构) - T

    转置后的输出。

类型约束

  • 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) )

    将输入和输出类型约束为所有张量类型。