1 | #pragma once |
2 | |
3 | // @generated by torchgen/gen.py from NativeFunction.h |
4 | |
5 | #include <c10/core/Scalar.h> |
6 | #include <c10/core/Storage.h> |
7 | #include <c10/core/TensorOptions.h> |
8 | #include <c10/util/Deprecated.h> |
9 | #include <c10/util/Optional.h> |
10 | #include <c10/core/QScheme.h> |
11 | #include <ATen/core/Reduction.h> |
12 | #include <ATen/core/Tensor.h> |
13 | #include <tuple> |
14 | #include <vector> |
15 | #include <ATen/ops/scatter_meta.h> |
16 | |
17 | namespace at { |
18 | namespace native { |
19 | struct TORCH_API structured_scatter_src_out : public at::meta::structured_scatter_src { |
20 | void impl(const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & src, const at::Tensor & out); |
21 | }; |
22 | struct TORCH_API structured_scatter_value_out : public at::meta::structured_scatter_value { |
23 | void impl(const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Scalar & value, const at::Tensor & out); |
24 | }; |
25 | struct TORCH_API structured_scatter_reduce_out : public at::meta::structured_scatter_reduce { |
26 | void impl(const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Tensor & src, c10::string_view reduce, const at::Tensor & out); |
27 | }; |
28 | struct TORCH_API structured_scatter_value_reduce_out : public at::meta::structured_scatter_value_reduce { |
29 | void impl(const at::Tensor & self, int64_t dim, const at::Tensor & index, const at::Scalar & value, c10::string_view reduce, const at::Tensor & out); |
30 | }; |
31 | TORCH_API at::Tensor scatter(const at::Tensor & self, at::Dimname dim, const at::Tensor & index, const at::Tensor & src); |
32 | TORCH_API at::Tensor scatter(const at::Tensor & self, at::Dimname dim, const at::Tensor & index, const at::Scalar & value); |
33 | } // namespace native |
34 | } // namespace at |
35 | |