Del via


Tensor.Transpose<T>(Tensor<T>) Method

Definition

Swaps the last two dimensions of the tensor tensor.

public:
generic <typename T>
 static System::Numerics::Tensors::Tensor<T> ^ Transpose(System::Numerics::Tensors::Tensor<T> ^ tensor);
public static System.Numerics.Tensors.Tensor<T> Transpose<T> (System.Numerics.Tensors.Tensor<T> tensor);
static member Transpose : System.Numerics.Tensors.Tensor<'T> -> System.Numerics.Tensors.Tensor<'T>
Public Function Transpose(Of T) (tensor As Tensor(Of T)) As Tensor(Of T)

Type Parameters

T

Parameters

tensor
Tensor<T>

Input Tensor<T>.

Returns

Applies to