4 #include <ATen/cuda/CUDAContext.h> 5 #include <c10/util/Optional.h> 10 namespace torch {
namespace cuda {
12 using tensor_list2d = std::vector<std::vector<at::Tensor>>;
18 std::vector<at::Tensor> scatter(
21 const c10::optional<std::vector<int64_t>>& chunk_sizes = c10::nullopt,