File tree Expand file tree Collapse file tree 8 files changed +48
-22
lines changed Expand file tree Collapse file tree 8 files changed +48
-22
lines changed Original file line number Diff line number Diff line change 1
- #include " vision_cpu .h"
1
+ #include " nms_kernel .h"
2
2
3
3
namespace {
4
4
Original file line number Diff line number Diff line change
1
+ #pragma once
2
+
3
+ #include <ATen/ATen.h>
4
+ #include "../macros.h"
5
+
6
+ VISION_API at ::Tensor nms_cpu (
7
+ const at ::Tensor & dets ,
8
+ const at ::Tensor & scores ,
9
+ double iou_threshold );
Original file line number Diff line number Diff line change 4
4
5
5
// TODO: Delete this file once all the methods are gone
6
6
7
- VISION_API at::Tensor nms_cpu (
8
- const at::Tensor& dets,
9
- const at::Tensor& scores,
10
- double iou_threshold);
11
-
12
7
VISION_API std::tuple<at::Tensor, at::Tensor> PSROIAlign_forward_cpu (
13
8
const at::Tensor& input,
14
9
const at::Tensor& rois,
Original file line number Diff line number Diff line change 3
3
#include < c10/cuda/CUDAGuard.h>
4
4
5
5
#include " cuda_helpers.h"
6
+ #include " nms_kernel.h"
6
7
7
8
#include < iostream>
8
9
#include < vector>
Original file line number Diff line number Diff line change
1
+ #pragma once
2
+
3
+ #include <ATen/ATen.h>
4
+ #include "../macros.h"
5
+
6
+ VISION_API at ::Tensor nms_cuda (
7
+ const at ::Tensor & dets ,
8
+ const at ::Tensor & scores ,
9
+ double iou_threshold );
Original file line number Diff line number Diff line change 4
4
5
5
// TODO: Delete this file once all the methods are gone
6
6
7
- VISION_API at::Tensor nms_cuda (
8
- const at::Tensor& dets,
9
- const at::Tensor& scores,
10
- double iou_threshold);
11
-
12
7
VISION_API std::tuple<at::Tensor, at::Tensor> PSROIAlign_forward_cuda (
13
8
const at::Tensor& input,
14
9
const at::Tensor& rois,
Original file line number Diff line number Diff line change 1
- #pragma once
1
+ #include " nms.h"
2
+ #include < torch/extension.h>
2
3
3
- #include " cpu/vision_cpu.h"
4
-
5
- #ifdef WITH_CUDA
6
- #include " autocast.h"
7
- #include " cuda/vision_cuda.h"
8
- #endif
9
- #ifdef WITH_HIP
10
- #include " autocast.h"
11
- #include " hip/vision_cuda.h"
4
+ #if defined(WITH_CUDA) || defined(WITH_HIP)
5
+ #include < ATen/autocast_mode.h>
12
6
#endif
13
7
14
- // nms dispatch nexus
15
8
at::Tensor nms (
16
9
const at::Tensor& dets,
17
10
const at::Tensor& scores,
Original file line number Diff line number Diff line change
1
+ #pragma once
2
+
3
+ #include "cpu/nms_kernel.h"
4
+
5
+ #ifdef WITH_CUDA
6
+ #include "cuda/nms_kernel.h"
7
+ #endif
8
+ #ifdef WITH_HIP
9
+ #include "hip/nms_kernel.h"
10
+ #endif
11
+
12
+ // C++ Forward
13
+ at ::Tensor nms (
14
+ const at ::Tensor & dets ,
15
+ const at ::Tensor & scores ,
16
+ double iou_threshold );
17
+
18
+ // Autocast Forward
19
+ #if defined(WITH_CUDA ) || defined(WITH_HIP )
20
+ at ::Tensor nms_autocast (
21
+ const at ::Tensor & dets ,
22
+ const at ::Tensor & scores ,
23
+ double iou_threshold );
24
+ #endif
You can’t perform that action at this time.
0 commit comments