squeeze_native.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. #pragma once
  2. // @generated by torchgen/gen.py from NativeFunction.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/core/Tensor.h>
  11. #include <tuple>
  12. #include <vector>
  13. namespace at {
  14. namespace native {
  15. TORCH_API at::Tensor squeeze(const at::Tensor & self);
  16. TORCH_API at::Tensor squeeze_nested(const at::Tensor & self);
  17. TORCH_API at::Tensor squeeze_quantized(const at::Tensor & self);
  18. TORCH_API at::Tensor & squeeze_(at::Tensor & self);
  19. TORCH_API at::Tensor squeeze(const at::Tensor & self, int64_t dim);
  20. TORCH_API at::Tensor squeeze_dim_nested(const at::Tensor & self, int64_t dim);
  21. TORCH_API at::Tensor squeeze_quantized(const at::Tensor & self, int64_t dim);
  22. TORCH_API at::Tensor & squeeze_(at::Tensor & self, int64_t dim);
  23. TORCH_API at::Tensor squeeze(const at::Tensor & self, at::Dimname dim);
  24. TORCH_API at::Tensor & squeeze_(at::Tensor & self, at::Dimname dim);
  25. TORCH_API at::Tensor squeeze(const at::Tensor & self, at::IntArrayRef dim);
  26. TORCH_API at::Tensor squeeze_dim_nested(const at::Tensor & self, at::IntArrayRef dim);
  27. TORCH_API at::Tensor squeeze_quantized(const at::Tensor & self, at::IntArrayRef dim);
  28. TORCH_API at::Tensor & squeeze_(at::Tensor & self, at::IntArrayRef dim);
  29. } // namespace native
  30. } // namespace at