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
a90b3978
Unverified
Commit
a90b3978
authored
Sep 26, 2021
by
Miao Zheng
Committed by
GitHub
Sep 26, 2021
Browse files
[Fix] Unrecognized symbol in correlation.cpp (#1372)
parent
745aa737
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/correlation.cpp
mmcv/ops/csrc/pytorch/correlation.cpp
+2
-2
No files found.
mmcv/ops/csrc/pytorch/correlation.cpp
View file @
a90b3978
...
...
@@ -48,7 +48,7 @@ void correlation_forward(Tensor input1, Tensor input2, Tensor output, int kH,
int
kW
,
int
patchH
,
int
patchW
,
int
padH
,
int
padW
,
int
dilationH
,
int
dilationW
,
int
dilation_patchH
,
int
dilation_patchW
,
int
dH
,
int
dW
)
{
if
(
input1
.
device
().
is_cuda
()
and
input2
.
device
().
is_cuda
())
{
if
(
input1
.
device
().
is_cuda
()
&&
input2
.
device
().
is_cuda
())
{
#ifdef MMCV_WITH_CUDA
CHECK_CUDA_INPUT
(
input1
);
CHECK_CUDA_INPUT
(
input2
);
...
...
@@ -68,7 +68,7 @@ void correlation_backward(Tensor grad_output, Tensor input1, Tensor input2,
int
kW
,
int
patchH
,
int
patchW
,
int
padH
,
int
padW
,
int
dilationH
,
int
dilationW
,
int
dilation_patchH
,
int
dilation_patchW
,
int
dH
,
int
dW
)
{
if
(
input1
.
device
().
is_cuda
()
and
input2
.
device
().
is_cuda
())
{
if
(
input1
.
device
().
is_cuda
()
&&
input2
.
device
().
is_cuda
())
{
#ifdef MMCV_WITH_CUDA
CHECK_CUDA_INPUT
(
grad_output
);
CHECK_CUDA_INPUT
(
input1
);
...
...
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