Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
one
spconv
Commits
9429fe83
Commit
9429fe83
authored
Nov 10, 2021
by
yan.yan
Browse files
add a assert for inverse conv
parent
322353c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
spconv/pytorch/conv.py
spconv/pytorch/conv.py
+3
-0
No files found.
spconv/pytorch/conv.py
View file @
9429fe83
...
@@ -346,6 +346,9 @@ class SparseConvolution(SparseModule):
...
@@ -346,6 +346,9 @@ class SparseConvolution(SparseModule):
mask_argsort_bwd_splits
=
datas
.
mask_argsort_fwd_splits
mask_argsort_bwd_splits
=
datas
.
mask_argsort_fwd_splits
masks
=
datas
.
masks
masks
=
datas
.
masks
out_spatial_shape
=
datas
.
spatial_shape
out_spatial_shape
=
datas
.
spatial_shape
assert
pair_fwd
.
shape
[
0
]
==
np
.
prod
(
self
.
kernel_size
),
"inverse conv must have same kernel size as its couple conv"
else
:
else
:
if
self
.
indice_key
is
not
None
and
datas
is
not
None
:
if
self
.
indice_key
is
not
None
and
datas
is
not
None
:
...
...
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