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
f2439cd7
Unverified
Commit
f2439cd7
authored
Sep 26, 2023
by
6V
Committed by
GitHub
Sep 26, 2023
Browse files
Fix modulated_deform_conv for torch_npu v2.1 (#2941)
parent
8523eeef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
mmcv/ops/modulated_deform_conv.py
mmcv/ops/modulated_deform_conv.py
+2
-1
No files found.
mmcv/ops/modulated_deform_conv.py
View file @
f2439cd7
...
...
@@ -58,7 +58,8 @@ class ModulatedDeformConv2dFunction(Function):
kernel_w
,
kernel_h
,
ctx
.
deform_groups
)
select_offset
=
offset
.
index_select
(
1
,
sort_index_fp
)
offset_all
=
torch
.
cat
([
select_offset
,
mask
],
dim
=
1
)
output
,
offset_out
=
torch
.
npu_deformable_conv2d
(
import
torch_npu
output
,
offset_out
=
torch_npu
.
npu_deformable_conv2d
(
input_tensor
,
weight
,
offset_all
,
...
...
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