Tensor.PermuteDimensions<T> Método

Definição

Troca as dimensões do tensor tensor de acordo com o parâmetro dimensions. Se tensor for um tensor 1D, ele retornará tensor. Caso contrário, ele cria um novo Tensor<T> com a nova ordenação de eixo alocando nova memória.

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)

Parâmetros de tipo

T

Parâmetros

tensor
Tensor<T>

Tensor<T> de entrada

dimensions
ReadOnlySpan<Int32>

ReadOnlySpan<T> com a nova ordenação de eixo.

Retornos

Aplica-se a