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
ece32796
Unverified
Commit
ece32796
authored
Sep 17, 2020
by
ychan
Committed by
GitHub
Sep 17, 2020
Browse files
fix dcn forward bug (#562)
parent
779f47ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
mmcv/ops/csrc/parrots/deform_conv_cuda.cu
mmcv/ops/csrc/parrots/deform_conv_cuda.cu
+1
-0
mmcv/ops/csrc/pytorch/deform_conv_cuda.cu
mmcv/ops/csrc/pytorch/deform_conv_cuda.cu
+2
-0
No files found.
mmcv/ops/csrc/parrots/deform_conv_cuda.cu
View file @
ece32796
...
...
@@ -267,6 +267,7 @@ void DeformConvForwardCUDAKernelLauncher(
auto
columns_g
=
columns
[
g
];
gemm
(
ctx
,
1
,
false
,
weight_g
,
false
,
columns_g
,
1
,
output_g
);
}
columns
=
columns
.
view
({
columns
.
dim
(
0
)
*
columns
.
dim
(
1
),
columns
.
dim
(
2
)});
}
output_buffer
=
output_buffer
.
view
(
...
...
mmcv/ops/csrc/pytorch/deform_conv_cuda.cu
View file @
ece32796
...
...
@@ -276,6 +276,8 @@ void DeformConvForwardCUDAKernelLauncher(Tensor input, Tensor weight,
.
addmm_
(
weight
[
g
].
flatten
(
1
),
columns
[
g
])
.
view_as
(
output_buffer
[
elt
][
g
]);
}
columns
=
columns
.
view
({
columns
.
size
(
0
)
*
columns
.
size
(
1
),
columns
.
size
(
2
)});
}
output_buffer
=
output_buffer
.
view
(
...
...
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