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
OpenDAS
MMCV
Commits
0b005c52
"git@developer.sourcefind.cn:OpenDAS/mmcv.git" did not exist on "0448fcf9063409f38f19f44a265b787ae6d00583"
Unverified
Commit
0b005c52
authored
Jan 19, 2023
by
liuhw
Committed by
GitHub
Jan 19, 2023
Browse files
[Fix] Fix the parameter error of DeformableRoiPool in Ascend device (#2546)
parent
dfb03806
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mmcv/ops/csrc/pytorch/npu/deform_roi_pool.cpp
mmcv/ops/csrc/pytorch/npu/deform_roi_pool.cpp
+2
-2
No files found.
mmcv/ops/csrc/pytorch/npu/deform_roi_pool.cpp
View file @
0b005c52
...
@@ -45,11 +45,11 @@ void deform_roi_pool_backward_npu(Tensor grad_output, Tensor input, Tensor rois,
...
@@ -45,11 +45,11 @@ void deform_roi_pool_backward_npu(Tensor grad_output, Tensor input, Tensor rois,
int64_t
sampling_ratio_
=
(
int64_t
)
sampling_ratio
;
int64_t
sampling_ratio_
=
(
int64_t
)
sampling_ratio
;
OpCommand
cmd
;
OpCommand
cmd
;
cmd
.
Name
(
"DeformableRoiPoolGrad"
)
cmd
.
Name
(
"DeformableRoiPoolGrad"
)
.
Input
(
grad_
in
put
)
.
Input
(
grad_
out
put
)
.
Input
(
input
)
.
Input
(
input
)
.
Input
(
rois
)
.
Input
(
rois
)
.
Input
(
offset
)
.
Input
(
offset
)
.
Output
(
grad_
out
put
)
.
Output
(
grad_
in
put
)
.
Output
(
grad_offset
)
.
Output
(
grad_offset
)
.
Attr
(
"output_size"
,
output_size
)
.
Attr
(
"output_size"
,
output_size
)
.
Attr
(
"spatial_scale"
,
spatial_scale
)
.
Attr
(
"spatial_scale"
,
spatial_scale
)
...
...
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