Method Transpose
Transpose(Tensor, Tensor)
Calculates an output tensor by reversing the dimensions of the input tensor.
Declaration
void Transpose(Tensor X, Tensor O)
Parameters
Type | Name | Description |
---|---|---|
Tensor | X | The input tensor. |
Tensor | O | The output tensor to be computed and filled. |
Transpose(Tensor, Tensor, int[])
Calculates an output tensor by permuting the axes and data of the input tensor according to the given permutations.
Declaration
void Transpose(Tensor X, Tensor O, int[] permutations)
Parameters
Type | Name | Description |
---|---|---|
Tensor | X | The input tensor. |
Tensor | O | The output tensor to be computed and filled. |
int[] | permutations | The axes to sample the output tensor from in the input tensor. |