Tensor.Split<T>(ReadOnlyTensorSpan<T>, Int32, IntPtr) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將 a Tensor<T> 分割成 splitCountdimension。 若張量無法在給定 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>[]