Jaa


Tensor.Split<T>(ReadOnlyTensorSpan<T>, Int32, IntPtr) Method

Definition

Split a Tensor<T> into splitCount along the given dimension. If the tensor cannot be split evenly on the given dimension an exception is thrown.

public:
generic <typename T>
 static cli::array <System::Numerics::Tensors::Tensor<T> ^> ^ Split(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % tensor, int splitCount, IntPtr dimension);
public static System.Numerics.Tensors.Tensor<T>[] Split<T> (scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> tensor, int splitCount, IntPtr dimension);
static member Split : ReadOnlyTensorSpan * int * nativeint -> System.Numerics.Tensors.Tensor<'T>[]
Public Function Split(Of T) (ByRef tensor As ReadOnlyTensorSpan(Of T), splitCount As Integer, dimension As IntPtr) As Tensor(Of T)()

Type Parameters

T

Parameters

splitCount
Int32

How many times to split the tensor

dimension
IntPtr

nativeint

The axis to split on.

Returns

Tensor<T>[]

Applies to