Tensor.Split<T>(ReadOnlyTensorSpan<T>, Int32, IntPtr) 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.
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
- tensor
- ReadOnlyTensorSpan<T>
Input Tensor<T>.
- splitCount
- Int32
How many times to split the tensor
- dimension
-
IntPtr
nativeint
The axis to split on.
Returns
Tensor<T>[]
Applies to
Samarbeid med oss på GitHub
Du finner kilden for dette innholdet på GitHub. Der du også kan opprette og se gjennom problemer og pull-forespørsler. Hvis du vil ha mer informasjon, kan du se vår bidragsyterveiledning.