Transpose

Transpose - 25

版本

  • 名称: Transpose (GitHub)

  • : main

  • since_version: 25

  • 函数: False

  • 支持级别: SupportType.COMMON

  • 形状推断: True

此版本的操作符已在版本 25 及之后可用。

摘要

返回输入张量的转置。(类似于 numpy.transpose)。可选属性 perm 必须是输入张量维度的排列。输出张量的轴 i 对应于输入张量的轴 perm[i]。例如,当 perm=(1, 0, 2) 时,给定形状为 (1, 2, 3) 的输入张量,输出形状将是 (2, 1, 3)。当 perm=(1, 2, 0) 时,给定形状为 (1, 2, 3) 的输入张量,输出形状将是 (2, 3, 1)。如果省略属性 perm,则其默认值为 (n-1, ..., 0),其中 n 是输入张量的秩。

属性

  • perm - 整数列表 :

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

输入

  • 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(float8e8m0), tensor(int16), tensor(int2), tensor(int32), tensor(int4), tensor(int64), tensor(int8), tensor(string), tensor(uint16), tensor(uint2), tensor(uint32), tensor(uint4), tensor(uint64), tensor(uint8) )

    将输入和输出类型限制为所有张量类型。

Transpose - 24

版本

  • 名称: Transpose (GitHub)

  • : main

  • 起始版本24

  • 函数: False

  • 支持级别: SupportType.COMMON

  • 形状推断: True

此版本的操作符已可用于版本 24 及以上

摘要

返回输入张量的转置。(类似于 numpy.transpose)。可选属性 perm 必须是输入张量维度的排列。输出张量的轴 i 对应于输入张量的轴 perm[i]。例如,当 perm=(1, 0, 2) 时,给定形状为 (1, 2, 3) 的输入张量,输出形状将是 (2, 1, 3)。当 perm=(1, 2, 0) 时,给定形状为 (1, 2, 3) 的输入张量,输出形状将是 (2, 3, 1)。如果省略属性 perm,则其默认值为 (n-1, ..., 0),其中 n 是输入张量的秩。

属性

  • perm - 整数列表 :

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

输入

  • 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(float8e8m0), tensor(int16), tensor(int32), tensor(int4), tensor(int64), tensor(int8), tensor(string), tensor(uint16), tensor(uint32), tensor(uint4), tensor(uint64), tensor(uint8) )

    将输入和输出类型限制为所有张量类型。

Transpose - 23

版本

  • 名称: Transpose (GitHub)

  • : main

  • 起始版本23

  • 函数: False

  • 支持级别: SupportType.COMMON

  • 形状推断: True

此版本的操作符已可用于版本 23 及以上

摘要

返回输入张量的转置。(类似于 numpy.transpose)。可选属性 perm 必须是输入张量维度的排列。输出张量的轴 i 对应于输入张量的轴 perm[i]。例如,当 perm=(1, 0, 2) 时,给定形状为 (1, 2, 3) 的输入张量,输出形状将是 (2, 1, 3)。当 perm=(1, 2, 0) 时,给定形状为 (1, 2, 3) 的输入张量,输出形状将是 (2, 3, 1)。如果省略属性 perm,则其默认值为 (n-1, ..., 0),其中 n 是输入张量的秩。

属性

  • perm - 整数列表 :

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

输入

  • 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 必须是输入张量维度的排列。输出张量的轴 i 对应于输入张量的轴 perm[i]。例如,当 perm=(1, 0, 2) 时,给定形状为 (1, 2, 3) 的输入张量,输出形状将是 (2, 1, 3)。当 perm=(1, 2, 0) 时,给定形状为 (1, 2, 3) 的输入张量,输出形状将是 (2, 3, 1)。如果省略属性 perm,则其默认值为 (n-1, ..., 0),其中 n 是输入张量的秩。

属性

  • perm - 整数列表 :

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

输入

  • 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

  • 起始版本: 13

  • 函数: False

  • 支持级别: SupportType.COMMON

  • 形状推断: True

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

摘要

返回输入张量的转置。(类似于 numpy.transpose)。可选属性 perm 必须是输入张量维度的排列。输出张量的轴 i 对应于输入张量的轴 perm[i]。例如,当 perm=(1, 0, 2) 时,给定形状为 (1, 2, 3) 的输入张量,输出形状将是 (2, 1, 3)。当 perm=(1, 2, 0) 时,给定形状为 (1, 2, 3) 的输入张量,输出形状将是 (2, 3, 1)。如果省略属性 perm,则其默认值为 (n-1, ..., 0),其中 n 是输入张量的秩。

属性

  • perm - 整数列表 :

    一个整数列表。默认情况下,反转维度,否则根据给定值排列轴。

输入

  • 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

  • 起始版本: 1

  • 函数: False

  • 支持级别: SupportType.COMMON

  • 形状推断: True

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

摘要

返回输入张量的转置。(类似于 numpy.transpose)。可选属性 perm 必须是输入张量维度的排列。输出张量的轴 i 对应于输入张量的轴 perm[i]。例如,当 perm=(1, 0, 2) 时,给定形状为 (1, 2, 3) 的输入张量,输出形状将是 (2, 1, 3)。当 perm=(1, 2, 0) 时,给定形状为 (1, 2, 3) 的输入张量,输出形状将是 (2, 3, 1)。如果省略属性 perm,则其默认值为 (n-1, ..., 0),其中 n 是输入张量的秩。

属性

  • perm - 整数列表 :

    一个整数列表。默认情况下,反转维度,否则根据给定值排列轴。

输入

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

    将输入和输出类型限制为所有张量类型。