UfuncCUDA.cu 494 B

123456789101112131415161718192021
  1. #define TORCH_ASSERT_NO_OPERATORS
  2. #include <ATen/native/ufunc/${name}.h>
  3. #include <ATen/Dispatch.h>
  4. #include <ATen/native/DispatchStub.h>
  5. #include <c10/core/Scalar.h>
  6. ${cuda_headers}
  7. namespace at {
  8. // NB: this is explicitly copied here (via codegen) rather than
  9. // included via NativeFunctions.h to avoid recompiling this file when
  10. // NativeFunctions.h changes
  11. namespace meta {
  12. ${meta_declaration}
  13. }
  14. namespace native {
  15. ${native_declaration}
  16. ${native_definitions}
  17. }} // namespace at::native