vision.cpp 798 B

12345678910111213141516
  1. /*!
  2. **************************************************************************************************
  3. * Deformable DETR
  4. * Copyright (c) 2020 SenseTime. All Rights Reserved.
  5. * Licensed under the Apache License, Version 2.0 [see LICENSE for details]
  6. **************************************************************************************************
  7. * Modified from https://github.com/chengdazhi/Deformable-Convolution-V2-PyTorch/tree/pytorch_1.0.0
  8. **************************************************************************************************
  9. */
  10. #include "ms_deform_attn.h"
  11. PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
  12. m.def("ms_deform_attn_forward", &ms_deform_attn_forward, "ms_deform_attn_forward");
  13. m.def("ms_deform_attn_backward", &ms_deform_attn_backward, "ms_deform_attn_backward");
  14. }