Transpose

Transpose - 23

版本

  • 名稱Transpose (GitHub)

  • 網域main

  • since_version23

  • functionFalse

  • support_levelSupportType.COMMON

  • 形狀推斷True

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

摘要

轉置輸入張量,類似 numpy.transpose。例如,當 perm=(1, 0, 2) 時,給定形狀為 (1, 2, 3) 的輸入張量,輸出形狀將為 (2, 1, 3)。

屬性

  • perm - INTS :

    一個整數列表。預設情況下,反轉維度,否則根據給定的值排列軸。其長度必須等於輸入的秩。

輸入

  • data (異質) - T

    一個輸入張量。

輸出

  • transposed (異質) - 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_version21

  • functionFalse

  • support_levelSupportType.COMMON

  • 形狀推斷True

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

摘要

轉置輸入張量,類似 numpy.transpose。例如,當 perm=(1, 0, 2) 時,給定形狀為 (1, 2, 3) 的輸入張量,輸出形狀將為 (2, 1, 3)。

屬性

  • perm - INTS :

    一個整數列表。預設情況下,反轉維度,否則根據給定的值排列軸。其長度必須等於輸入的秩。

輸入

  • data (異質) - T

    一個輸入張量。

輸出

  • transposed (異質) - 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_version13

  • functionFalse

  • support_levelSupportType.COMMON

  • 形狀推斷True

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

摘要

轉置輸入張量,類似 numpy.transpose。例如,當 perm=(1, 0, 2) 時,給定形狀為 (1, 2, 3) 的輸入張量,輸出形狀將為 (2, 1, 3)。

屬性

  • perm - INTS :

    一個整數列表。預設情況下,反轉維度,否則根據給定的值排列軸。

輸入

  • data (異質) - T

    一個輸入張量。

輸出

  • transposed (異質) - 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) )

    將輸入和輸出類型限制為所有張量類型。

轉置 - 1

版本

  • 名稱Transpose (GitHub)

  • 網域main

  • since_version: 1

  • functionFalse

  • support_levelSupportType.COMMON

  • 形狀推斷True

此運算子的版本自版本 1 開始提供。

摘要

轉置輸入張量,類似 numpy.transpose。例如,當 perm=(1, 0, 2) 時,給定形狀為 (1, 2, 3) 的輸入張量,輸出形狀將為 (2, 1, 3)。

屬性

  • perm - INTS :

    一個整數列表。預設情況下,反轉維度,否則根據給定的值排列軸。

輸入

  • data (異質) - T

    一個輸入張量。

輸出

  • transposed (異質) - 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) )

    將輸入和輸出類型限制為所有張量類型。