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
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.