Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

ps_roi_pool.h 1.2 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
  1. #pragma once
  2. #include <ATen/ATen.h>
  3. #include "../macros.h"
  4. namespace vision {
  5. namespace ops {
  6. VISION_API std::tuple<at::Tensor, at::Tensor> ps_roi_pool(
  7. const at::Tensor& input,
  8. const at::Tensor& rois,
  9. double spatial_scale,
  10. int64_t pooled_height,
  11. int64_t pooled_width);
  12. VISION_API std::tuple<at::Tensor, at::Tensor> ps_roi_pool_symint(
  13. const at::Tensor& input,
  14. const at::Tensor& rois,
  15. double spatial_scale,
  16. c10::SymInt pooled_height,
  17. c10::SymInt pooled_width);
  18. namespace detail {
  19. at::Tensor _ps_roi_pool_backward(
  20. const at::Tensor& grad,
  21. const at::Tensor& rois,
  22. const at::Tensor& channel_mapping,
  23. double spatial_scale,
  24. int64_t pooled_height,
  25. int64_t pooled_width,
  26. int64_t batch_size,
  27. int64_t channels,
  28. int64_t height,
  29. int64_t width);
  30. at::Tensor _ps_roi_pool_backward_symint(
  31. const at::Tensor& grad,
  32. const at::Tensor& rois,
  33. const at::Tensor& channel_mapping,
  34. double spatial_scale,
  35. c10::SymInt pooled_height,
  36. c10::SymInt pooled_width,
  37. c10::SymInt batch_size,
  38. c10::SymInt channels,
  39. c10::SymInt height,
  40. c10::SymInt width);
  41. } // namespace detail
  42. } // namespace ops
  43. } // namespace vision
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...