Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
SOLOv2-pytorch
Commits
7f9d2eb5
Commit
7f9d2eb5
authored
Sep 18, 2018
by
Kai Chen
Browse files
fix extension to fit pytorch 0.4.1 api
parent
0e0b9246
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
mmdet/ops/roi_align/src/roi_align_cuda.cpp
mmdet/ops/roi_align/src/roi_align_cuda.cpp
+2
-2
mmdet/ops/roi_pool/src/roi_pool_cuda.cpp
mmdet/ops/roi_pool/src/roi_pool_cuda.cpp
+2
-2
No files found.
mmdet/ops/roi_align/src/roi_align_cuda.cpp
View file @
7f9d2eb5
...
...
@@ -17,9 +17,9 @@ int ROIAlignBackwardLaucher(const at::Tensor top_grad, const at::Tensor rois,
const
int
pooled_height
,
const
int
pooled_width
,
at
::
Tensor
bottom_grad
);
#define CHECK_CUDA(x) AT_
ASSERT
(x.type().is_cuda(), #x " must be a CUDAtensor ")
#define CHECK_CUDA(x) AT_
CHECK
(x.type().is_cuda(), #x
,
" must be a CUDAtensor ")
#define CHECK_CONTIGUOUS(x) \
AT_
ASSERT
(x.is_contiguous(), #x " must be contiguous ")
AT_
CHECK
(x.is_contiguous(), #x
,
" must be contiguous ")
#define CHECK_INPUT(x) \
CHECK_CUDA(x); \
CHECK_CONTIGUOUS(x)
...
...
mmdet/ops/roi_pool/src/roi_pool_cuda.cpp
View file @
7f9d2eb5
...
...
@@ -16,9 +16,9 @@ int ROIPoolBackwardLaucher(const at::Tensor top_grad, const at::Tensor rois,
const
int
num_rois
,
const
int
pooled_h
,
const
int
pooled_w
,
at
::
Tensor
bottom_grad
);
#define CHECK_CUDA(x) AT_
ASSERT
(x.type().is_cuda(), #x " must be a CUDAtensor ")
#define CHECK_CUDA(x) AT_
CHECK
(x.type().is_cuda(), #x
,
" must be a CUDAtensor ")
#define CHECK_CONTIGUOUS(x) \
AT_
ASSERT
(x.is_contiguous(), #x " must be contiguous ")
AT_
CHECK
(x.is_contiguous(), #x
,
" must be contiguous ")
#define CHECK_INPUT(x) \
CHECK_CUDA(x); \
CHECK_CONTIGUOUS(x)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment