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
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.