clamp_max.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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/clamp_max_ops.h>
  16. namespace at {
  17. // aten::clamp_max(Tensor self, Scalar max) -> Tensor
  18. inline at::Tensor clamp_max(const at::Tensor & self, const at::Scalar & max) {
  19. return at::_ops::clamp_max::call(self, max);
  20. }
  21. // aten::clamp_max.Tensor(Tensor self, Tensor max) -> Tensor
  22. inline at::Tensor clamp_max(const at::Tensor & self, const at::Tensor & max) {
  23. return at::_ops::clamp_max_Tensor::call(self, max);
  24. }
  25. // aten::clamp_max_(Tensor(a!) self, Scalar max) -> Tensor(a!)
  26. inline at::Tensor & clamp_max_(at::Tensor & self, const at::Scalar & max) {
  27. return at::_ops::clamp_max_::call(self, max);
  28. }
  29. // aten::clamp_max_.Tensor(Tensor(a!) self, Tensor max) -> Tensor(a!)
  30. inline at::Tensor & clamp_max_(at::Tensor & self, const at::Tensor & max) {
  31. return at::_ops::clamp_max__Tensor::call(self, max);
  32. }
  33. // aten::clamp_max.out(Tensor self, Scalar max, *, Tensor(a!) out) -> Tensor(a!)
  34. inline at::Tensor & clamp_max_out(at::Tensor & out, const at::Tensor & self, const at::Scalar & max) {
  35. return at::_ops::clamp_max_out::call(self, max, out);
  36. }
  37. // aten::clamp_max.out(Tensor self, Scalar max, *, Tensor(a!) out) -> Tensor(a!)
  38. inline at::Tensor & clamp_max_outf(const at::Tensor & self, const at::Scalar & max, at::Tensor & out) {
  39. return at::_ops::clamp_max_out::call(self, max, out);
  40. }
  41. // aten::clamp_max.Tensor_out(Tensor self, Tensor max, *, Tensor(a!) out) -> Tensor(a!)
  42. inline at::Tensor & clamp_max_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & max) {
  43. return at::_ops::clamp_max_Tensor_out::call(self, max, out);
  44. }
  45. // aten::clamp_max.Tensor_out(Tensor self, Tensor max, *, Tensor(a!) out) -> Tensor(a!)
  46. inline at::Tensor & clamp_max_outf(const at::Tensor & self, const at::Tensor & max, at::Tensor & out) {
  47. return at::_ops::clamp_max_Tensor_out::call(self, max, out);
  48. }
  49. }