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
81d12c3d
"vscode:/vscode.git/clone" did not exist on "40f16872c749d5b5cbf26218b3bd33c6a6788582"
Unverified
Commit
81d12c3d
authored
May 26, 2023
by
Nicolas Hug
Committed by
GitHub
May 26, 2023
Browse files
Fix segfault in DeformConv2d when `mask` is None (#7632)
parent
4a51822c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/ops/deform_conv.py
torchvision/ops/deform_conv.py
+1
-1
No files found.
torchvision/ops/deform_conv.py
View file @
81d12c3d
...
...
@@ -68,7 +68,7 @@ def deform_conv2d(
use_mask
=
mask
is
not
None
if
mask
is
None
:
mask
=
torch
.
zeros
((
input
.
shape
[
0
],
0
),
device
=
input
.
device
,
dtype
=
input
.
dtype
)
mask
=
torch
.
zeros
((
input
.
shape
[
0
],
1
),
device
=
input
.
device
,
dtype
=
input
.
dtype
)
if
bias
is
None
:
bias
=
torch
.
zeros
(
out_channels
,
device
=
input
.
device
,
dtype
=
input
.
dtype
)
...
...
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