RegisterSchema.cpp 383 B

12345678910111213
  1. // ${generated_comment}
  2. #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
  3. #include <torch/library.h>
  4. namespace at {
  5. TORCH_LIBRARY(aten, m) {
  6. ${aten_schema_registrations};
  7. // Distributed Ops
  8. // Implementations located in torch/csrc/jit/runtime/register_distributed_ops.cpp
  9. m.def("get_gradients(int context_id) -> Dict(Tensor, Tensor)");
  10. }
  11. ${schema_registrations}
  12. } // namespace at