Tensor.PermuteDimensions<T> メソッド

定義

dimensions パラメーターに従って、tensor テンソルの寸法を入れ替えます。 tensor が 1D テンソルの場合は、tensorを返します。 それ以外の場合は、新しいメモリを割り当てることによって、新しい軸の順序を持つ新しい Tensor<T> が作成されます。

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Numerics::Tensors::Tensor<T> ^ PermuteDimensions(System::Numerics::Tensors::Tensor<T> ^ tensor, ReadOnlySpan<int> dimensions);
public static System.Numerics.Tensors.Tensor<T> PermuteDimensions<T> (this System.Numerics.Tensors.Tensor<T> tensor, scoped ReadOnlySpan<int> dimensions);
static member PermuteDimensions : System.Numerics.Tensors.Tensor<'T> * ReadOnlySpan<int> -> System.Numerics.Tensors.Tensor<'T>
<Extension()>
Public Function PermuteDimensions(Of T) (tensor As Tensor(Of T), dimensions As ReadOnlySpan(Of Integer)) As Tensor(Of T)

型パラメーター

T

パラメーター

tensor
Tensor<T>

入力 Tensor<T>

dimensions
ReadOnlySpan<Int32>

新しい軸の順序で ReadOnlySpan<T> します。

戻り値

適用対象