Tensor.PermuteDimensions<T> Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Felcseréli a tenzor méreteit tensor a dimensions paraméternek megfelelően.
Ha tensor 1D tenzor, akkor a függvény visszaadja a következőt tensor: . Ellenkező esetben újat Tensor<T> hoz létre az új tengely rendezésével új memória kiosztásával.
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, 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ípusparaméterek
- T
Paraméterek
- dimensions
- ReadOnlySpan<Int32>
ReadOnlySpan<T> az új tengelyrendezéssel.