Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
food-round2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Joel Joseph
food-round2
Commits
7f9d2eb5
"README.md" did not exist on "fe26db7d95b144d437120662437409981c659e1f"
Commit
7f9d2eb5
authored
6 years ago
by
Kai Chen
Browse files
Options
Downloads
Patches
Plain Diff
fix extension to fit pytorch 0.4.1 api
parent
0e0b9246
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mmdet/ops/roi_align/src/roi_align_cuda.cpp
+2
-2
2 additions, 2 deletions
mmdet/ops/roi_align/src/roi_align_cuda.cpp
mmdet/ops/roi_pool/src/roi_pool_cuda.cpp
+2
-2
2 additions, 2 deletions
mmdet/ops/roi_pool/src/roi_pool_cuda.cpp
with
4 additions
and
4 deletions
mmdet/ops/roi_align/src/roi_align_cuda.cpp
+
2
−
2
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)
...
...
This diff is collapsed.
Click to expand it.
mmdet/ops/roi_pool/src/roi_pool_cuda.cpp
+
2
−
2
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)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment