scatter_meta.h 1.2 KB

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