torch.Tensor.Tensor.tensor_split
Tensor.tensor_split(indices_or_sections: number | number[], options?: SplitOptions): Tensor[]Tensor.tensor_split(indices_or_sections: number | number[], dim: number, options?: SplitOptions): Tensor[]Splits the tensor into multiple tensors.
Parameters
indices_or_sectionsnumber | number[]- Indices or number of sections
optionsSplitOptionsoptional- Optional settings for tensor_split
Returns
Tensor[]– Array of tensors