Tensor.StackAlongDimension Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
StackAlongDimension<T>(Int32, ReadOnlySpan<Tensor<T>>) |
Join multiple Tensor<T> along a new dimension. The axis parameter specifies the index of the new dimension. All tensors must have the same shape. |
StackAlongDimension<T>(ReadOnlySpan<Tensor<T>>, TensorSpan<T>, Int32) |
Join multiple Tensor<T> along a new dimension. The axis parameter specifies the index of the new dimension. All tensors must have the same shape. |
StackAlongDimension<T>(Int32, ReadOnlySpan<Tensor<T>>)
- Source:
- TensorExtensions.cs
Join multiple Tensor<T> along a new dimension. The axis parameter specifies the index of the new dimension. All tensors must have the same shape.
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)
Type Parameters
- T
Parameters
- dimension
- Int32
Index of where the new dimension will be.
- tensors
- ReadOnlySpan<Tensor<T>>
Input Tensor<T>.
Returns
Applies to
StackAlongDimension<T>(ReadOnlySpan<Tensor<T>>, TensorSpan<T>, Int32)
- Source:
- TensorExtensions.cs
Join multiple Tensor<T> along a new dimension. The axis parameter specifies the index of the new dimension. All tensors must have the same shape.
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)
Type Parameters
- T
Parameters
- tensors
- ReadOnlySpan<Tensor<T>>
Input Tensor<T>.
- destination
- TensorSpan<T>
- dimension
- Int32
Index of where the new dimension will be.