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
vision
Commits
a2d240ee
Unverified
Commit
a2d240ee
authored
Nov 11, 2021
by
Vasilis Vryniotis
Committed by
GitHub
Nov 11, 2021
Browse files
Update the error message on DeformConv2d. (#4908)
parent
272e080c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/csrc/ops/cpu/deform_conv2d_kernel.cpp
torchvision/csrc/ops/cpu/deform_conv2d_kernel.cpp
+1
-1
No files found.
torchvision/csrc/ops/cpu/deform_conv2d_kernel.cpp
View file @
a2d240ee
...
@@ -963,7 +963,7 @@ at::Tensor deform_conv2d_forward_kernel(
...
@@ -963,7 +963,7 @@ at::Tensor deform_conv2d_forward_kernel(
(
mask_c
.
size
(
0
)
==
input_c
.
size
(
0
)),
"invalid batch size of mask"
);
(
mask_c
.
size
(
0
)
==
input_c
.
size
(
0
)),
"invalid batch size of mask"
);
TORCH_CHECK
(
TORCH_CHECK
(
(
!
use_mask
||
(
mask_c
.
size
(
2
)
==
out_h
&&
mask_c
.
size
(
3
)
==
out_w
)),
(
!
use_mask
||
(
mask_c
.
size
(
2
)
==
out_h
&&
mask_c
.
size
(
3
)
==
out_w
)),
"
offset
output dims: ("
,
"
mask
output dims: ("
,
mask_c
.
size
(
2
),
mask_c
.
size
(
2
),
", "
,
", "
,
mask_c
.
size
(
3
),
mask_c
.
size
(
3
),
...
...
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