Method Transpose
Transpose(int[])
Creates a TensorShape by permuting axes. For example, if this is (6, 7, 8, 9), and permutations is {3, 0, 1, 2}, the method returns (9, 6, 7, 8).
Declaration
public TensorShape Transpose(int[] permutations)
Parameters
| Type | Name | Description |
|---|---|---|
| int[] | permutations | An array indexing the new tensor axis from the old ones. |
Returns
| Type | Description |
|---|---|
| TensorShape | The transposed tensor shape. |
Transpose()
Creates a TensorShape by reversing axes. For example, if this is (6, 7, 8, 9), the method returns (9, 8, 7, 6).
Declaration
public TensorShape Transpose()
Returns
| Type | Description |
|---|---|
| TensorShape | The transposed tensor shape. |