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

定义

Tensor<T> 拆分为沿给定 dimensionsplitCount。 如果给定的 dimension 无法均匀拆分张量,则会引发异常。

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)()

类型参数

T

参数

tensor
ReadOnlyTensorSpan<T>

输入 Tensor<T>

splitCount
Int32

拆分 tensor 的次数

dimension
IntPtr

nativeint

要拆分的轴。

返回

Tensor<T>[]

适用于