pow_cpu_dispatch.h 1.6 KB

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. // @generated by torchgen/gen.py from DispatchKeyFunction.h
  3. // NB: The implementing C++ file is RegisterDispatchKey.cpp
  4. // The only #includes we need are for custom classes that have defaults in the C++ API
  5. #include <c10/core/MemoryFormat.h>
  6. #include <c10/core/Scalar.h>
  7. #include <ATen/core/Reduction.h>
  8. // Forward declarations of any types needed in the operator signatures.
  9. // We can't directly include these classes because it will cause circular include dependencies.
  10. // This file is included by TensorBody.h, which defines the Tensor class.
  11. #include <ATen/core/ATen_fwd.h>
  12. namespace at {
  13. namespace cpu {
  14. TORCH_API at::Tensor pow(const at::Tensor & self, const at::Tensor & exponent);
  15. TORCH_API at::Tensor & pow_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & exponent);
  16. TORCH_API at::Tensor & pow_outf(const at::Tensor & self, const at::Tensor & exponent, at::Tensor & out);
  17. TORCH_API at::Tensor & pow_(at::Tensor & self, const at::Tensor & exponent);
  18. TORCH_API at::Tensor pow(const at::Scalar & self, const at::Tensor & exponent);
  19. TORCH_API at::Tensor & pow_out(at::Tensor & out, const at::Scalar & self, const at::Tensor & exponent);
  20. TORCH_API at::Tensor & pow_outf(const at::Scalar & self, const at::Tensor & exponent, at::Tensor & out);
  21. TORCH_API at::Tensor pow(const at::Tensor & self, const at::Scalar & exponent);
  22. TORCH_API at::Tensor & pow_out(at::Tensor & out, const at::Tensor & self, const at::Scalar & exponent);
  23. TORCH_API at::Tensor & pow_outf(const at::Tensor & self, const at::Scalar & exponent, at::Tensor & out);
  24. TORCH_API at::Tensor & pow_(at::Tensor & self, const at::Scalar & exponent);
  25. } // namespace cpu
  26. } // namespace at