Method Transpose
Transpose<T>(T)
Calculates an output tensor by reversing the dimensions of the input tensor.
Declaration
public T Transpose<T>(T X) where T : Tensor
Parameters
Type | Name | Description |
---|---|---|
T | X | The input tensor. |
Returns
Type | Description |
---|---|
T | The computed output tensor. |
Type Parameters
Name | Description |
---|---|
T | The tensor type of the input and output tensors. |
Transpose<T>(T, int[])
Calculates an output tensor by permuting the axes and data of the input tensor according to the given permutations.
Declaration
public T Transpose<T>(T X, int[] permutations) where T : Tensor
Parameters
Type | Name | Description |
---|---|---|
T | X | The input tensor. |
int[] | permutations | The axes to sample the output tensor from in the input tensor. |
Returns
Type | Description |
---|---|
T | The computed output tensor. |
Type Parameters
Name | Description |
---|---|
T | The tensor type of the input and output tensors. |