Sdílet prostřednictvím


Tensor.StackAlongDimension Metoda

Definice

Přetížení

StackAlongDimension<T>(Int32, ReadOnlySpan<Tensor<T>>)

Spojte několik Tensor<T> spolu s novou dimenzí. Parametr osy určuje index nové dimenze. Všechny tensory musí mít stejný tvar.

StackAlongDimension<T>(ReadOnlySpan<Tensor<T>>, TensorSpan<T>, Int32)

Spojte několik Tensor<T> spolu s novou dimenzí. Parametr osy určuje index nové dimenze. Všechny tensory musí mít stejný tvar.

StackAlongDimension<T>(Int32, ReadOnlySpan<Tensor<T>>)

Zdroj:
TensorExtensions.cs
Zdroj:
TensorExtensions.cs

Spojte několik Tensor<T> spolu s novou dimenzí. Parametr osy určuje index nové dimenze. Všechny tensory musí mít stejný tvar.

public:
generic <typename T>
 static System::Numerics::Tensors::Tensor<T> ^ StackAlongDimension(int dimension, ReadOnlySpan<System::Numerics::Tensors::Tensor<T> ^> tensors);
public static System.Numerics.Tensors.Tensor<T> StackAlongDimension<T>(int dimension, scoped ReadOnlySpan<System.Numerics.Tensors.Tensor<T>> tensors);
static member StackAlongDimension : int * ReadOnlySpan<System.Numerics.Tensors.Tensor<'T>> -> System.Numerics.Tensors.Tensor<'T>
Public Function StackAlongDimension(Of T) (dimension As Integer, tensors As ReadOnlySpan(Of Tensor(Of T))) As Tensor(Of T)

Parametry typu

T

Parametry

dimension
Int32

Index místa, kde bude nová dimenze.

tensors
ReadOnlySpan<Tensor<T>>

Vstupní Tensor<T>.

Návraty

Platí pro

StackAlongDimension<T>(ReadOnlySpan<Tensor<T>>, TensorSpan<T>, Int32)

Zdroj:
TensorExtensions.cs
Zdroj:
TensorExtensions.cs

Spojte několik Tensor<T> spolu s novou dimenzí. Parametr osy určuje index nové dimenze. Všechny tensory musí mít stejný tvar.

public:
generic <typename T>
 static System::Numerics::Tensors::TensorSpan<T> ^ StackAlongDimension(ReadOnlySpan<System::Numerics::Tensors::Tensor<T> ^> tensors, System::Numerics::Tensors::TensorSpan<T> % destination, int dimension);
public static ref readonly System.Numerics.Tensors.TensorSpan<T> StackAlongDimension<T>(scoped ReadOnlySpan<System.Numerics.Tensors.Tensor<T>> tensors, in System.Numerics.Tensors.TensorSpan<T> destination, int dimension);
static member StackAlongDimension : ReadOnlySpan<System.Numerics.Tensors.Tensor<'T>> * TensorSpan * int -> TensorSpan
Public Function StackAlongDimension(Of T) (tensors As ReadOnlySpan(Of Tensor(Of T)), ByRef destination As TensorSpan(Of T), dimension As Integer) As TensorSpan(Of T)

Parametry typu

T

Parametry

tensors
ReadOnlySpan<Tensor<T>>

Vstupní Tensor<T>.

destination
TensorSpan<T>
dimension
Int32

Index místa, kde bude nová dimenze.

Návraty

Platí pro