Home
last modified time | relevance | path

Searched refs:tensor_indices_or_sections (Results 1 – 2 of 2) sorted by relevance

/aosp_15_r20/external/pytorch/aten/src/ATen/native/
H A DTensorShape.cpp1003 std::vector<Tensor> tensor_split(const Tensor& self, const Tensor& tensor_indices_or_sections, int6… in tensor_split() argument
1005 auto split_device = tensor_indices_or_sections.device(); in tensor_split()
1008 auto split_dtype = tensor_indices_or_sections.scalar_type(); in tensor_split()
1011 auto split_dim = tensor_indices_or_sections.dim(); in tensor_split()
1016 int64_t sections = tensor_indices_or_sections.item<int64_t>(); in tensor_split()
1019 auto indices_data = tensor_indices_or_sections.const_data_ptr<int64_t>(); in tensor_split()
1020 auto stride = tensor_indices_or_sections.stride(0); in tensor_split()
1021 auto numel = tensor_indices_or_sections.numel(); in tensor_split()
/aosp_15_r20/external/pytorch/torch/_decomp/
H A Ddecompositions.py1473 @aten.tensor_split.tensor_indices_or_sections.py_impl(
1478 tensor_indices_or_sections: Tensor,
1481 assert tensor_indices_or_sections.device.type == "cpu"
1482 assert tensor_indices_or_sections.dtype == torch.int64
1483 split_dim = tensor_indices_or_sections.dim()
1490 sections = tensor_indices_or_sections.item()
1494 indices = [i.item() for i in tensor_indices_or_sections]