max.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #pragma once
  2. // @generated by torchgen/gen.py from Function.h
  3. #include <ATen/Context.h>
  4. #include <ATen/DeviceGuard.h>
  5. #include <ATen/TensorUtils.h>
  6. #include <ATen/TracerMode.h>
  7. #include <ATen/core/Generator.h>
  8. #include <ATen/core/Reduction.h>
  9. #include <ATen/core/Tensor.h>
  10. #include <c10/core/Scalar.h>
  11. #include <c10/core/Storage.h>
  12. #include <c10/core/TensorOptions.h>
  13. #include <c10/util/Deprecated.h>
  14. #include <c10/util/Optional.h>
  15. #include <ATen/ops/max_ops.h>
  16. namespace at {
  17. // aten::max.dim(Tensor self, int dim, bool keepdim=False) -> (Tensor values, Tensor indices)
  18. inline ::std::tuple<at::Tensor,at::Tensor> max(const at::Tensor & self, int64_t dim, bool keepdim=false) {
  19. return at::_ops::max_dim::call(self, dim, keepdim);
  20. }
  21. // aten::max.dim_max(Tensor self, int dim, bool keepdim=False, *, Tensor(a!) max, Tensor(b!) max_values) -> (Tensor(a!) values, Tensor(b!) indices)
  22. inline ::std::tuple<at::Tensor &,at::Tensor &> max_out(at::Tensor & max, at::Tensor & max_values, const at::Tensor & self, int64_t dim, bool keepdim=false) {
  23. return at::_ops::max_dim_max::call(self, dim, keepdim, max, max_values);
  24. }
  25. // aten::max.dim_max(Tensor self, int dim, bool keepdim=False, *, Tensor(a!) max, Tensor(b!) max_values) -> (Tensor(a!) values, Tensor(b!) indices)
  26. inline ::std::tuple<at::Tensor &,at::Tensor &> max_outf(const at::Tensor & self, int64_t dim, bool keepdim, at::Tensor & max, at::Tensor & max_values) {
  27. return at::_ops::max_dim_max::call(self, dim, keepdim, max, max_values);
  28. }
  29. // aten::max.names_dim(Tensor self, Dimname dim, bool keepdim=False) -> (Tensor values, Tensor indices)
  30. inline ::std::tuple<at::Tensor,at::Tensor> max(const at::Tensor & self, at::Dimname dim, bool keepdim=false) {
  31. return at::_ops::max_names_dim::call(self, dim, keepdim);
  32. }
  33. // aten::max.names_dim_max(Tensor self, Dimname dim, bool keepdim=False, *, Tensor(a!) max, Tensor(b!) max_values) -> (Tensor(a!) values, Tensor(b!) indices)
  34. inline ::std::tuple<at::Tensor &,at::Tensor &> max_out(at::Tensor & max, at::Tensor & max_values, const at::Tensor & self, at::Dimname dim, bool keepdim=false) {
  35. return at::_ops::max_names_dim_max::call(self, dim, keepdim, max, max_values);
  36. }
  37. // aten::max.names_dim_max(Tensor self, Dimname dim, bool keepdim=False, *, Tensor(a!) max, Tensor(b!) max_values) -> (Tensor(a!) values, Tensor(b!) indices)
  38. inline ::std::tuple<at::Tensor &,at::Tensor &> max_outf(const at::Tensor & self, at::Dimname dim, bool keepdim, at::Tensor & max, at::Tensor & max_values) {
  39. return at::_ops::max_names_dim_max::call(self, dim, keepdim, max, max_values);
  40. }
  41. // aten::max(Tensor self) -> Tensor
  42. inline at::Tensor max(const at::Tensor & self) {
  43. return at::_ops::max::call(self);
  44. }
  45. // aten::max.other(Tensor self, Tensor other) -> Tensor
  46. inline at::Tensor max(const at::Tensor & self, const at::Tensor & other) {
  47. return at::_ops::max_other::call(self, other);
  48. }
  49. // aten::max.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!)
  50. inline at::Tensor & max_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & other) {
  51. return at::_ops::max_out::call(self, other, out);
  52. }
  53. // aten::max.out(Tensor self, Tensor other, *, Tensor(a!) out) -> Tensor(a!)
  54. inline at::Tensor & max_outf(const at::Tensor & self, const at::Tensor & other, at::Tensor & out) {
  55. return at::_ops::max_out::call(self, other, out);
  56. }
  57. // aten::max.unary_out(Tensor self, *, Tensor(a!) out) -> Tensor(a!)
  58. inline at::Tensor & max_out(at::Tensor & out, const at::Tensor & self) {
  59. return at::_ops::max_unary_out::call(self, out);
  60. }
  61. // aten::max.unary_out(Tensor self, *, Tensor(a!) out) -> Tensor(a!)
  62. inline at::Tensor & max_outf(const at::Tensor & self, at::Tensor & out) {
  63. return at::_ops::max_unary_out::call(self, out);
  64. }
  65. }