언어

Tensor.Split<T>(ReadOnlyTensorSpan<T>, Int32, IntPtr) 메서드

정의

지정된 Tensor<T>에 splitCount 따라 분할 dimension 합니다. 지정된 dimension 예외에서 텐서를 균등하게 분할할 수 없는 경우 throw됩니다.

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

매개 변수

splitCount
Int32

분할할 횟수 tensor

dimension
IntPtr

nativeint

분할할 축입니다.

반품

Tensor<T>[]

예외

splitCount 는 긍정적이지 않습니다.

설명

순위 0 빈 텐서에는 효과적인 모양이 있습니다 [0].

적용 대상