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
ab5e2e8e
Commit
ab5e2e8e
authored
Nov 18, 2021
by
yan.yan
Browse files
v2.1.9: fix a small bug (assert isn't correct)
parent
27fb91bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
spconv/pytorch/core.py
spconv/pytorch/core.py
+1
-1
version.txt
version.txt
+1
-1
No files found.
spconv/pytorch/core.py
View file @
ab5e2e8e
...
@@ -144,7 +144,7 @@ class SparseConvTensor(metaclass=SpConvTensorMeta):
...
@@ -144,7 +144,7 @@ class SparseConvTensor(metaclass=SpConvTensorMeta):
"""we need to replace x.features = F.relu(x.features) with x = x.replace_feature(F.relu(x.features))
"""we need to replace x.features = F.relu(x.features) with x = x.replace_feature(F.relu(x.features))
due to limit of torch.fx
due to limit of torch.fx
"""
"""
assert
feature
.
shape
[
0
]
==
self
.
indices
.
shape
[
0
],
"replaced num of features not equal to indices"
#
assert feature.shape[0] == self.indices.shape[0], "replaced num of features not equal to indices"
new_spt
=
SparseConvTensor
(
feature
,
self
.
indices
,
self
.
spatial_shape
,
new_spt
=
SparseConvTensor
(
feature
,
self
.
indices
,
self
.
spatial_shape
,
self
.
batch_size
,
self
.
grid
,
self
.
voxel_num
,
self
.
batch_size
,
self
.
grid
,
self
.
voxel_num
,
self
.
indice_dict
)
self
.
indice_dict
)
...
...
version.txt
View file @
ab5e2e8e
2.1.
8
2.1.
9
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