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
SparseConvNet
Commits
bb5de2f5
"tools/git@developer.sourcefind.cn:OpenDAS/openpcdet.git" did not exist on "edb82b9f7ec575aebd2e8d9c704ca911d6197f9d"
Unverified
Commit
bb5de2f5
authored
Jun 26, 2018
by
Ben Graham
Committed by
GitHub
Jun 26, 2018
Browse files
Fix DenseToSparse
parent
3da6f2df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
sparseconvnet/denseToSparse.py
sparseconvnet/denseToSparse.py
+1
-2
No files found.
sparseconvnet/denseToSparse.py
View file @
bb5de2f5
...
@@ -59,8 +59,7 @@ class DenseToSparseFunction(Function):
...
@@ -59,8 +59,7 @@ class DenseToSparseFunction(Function):
ctx
.
aas2
=
aa
.
size
()
ctx
.
aas2
=
aa
.
size
()
r
=
(
nz
*
s
.
expand_as
(
nz
)).
sum
(
1
).
view
(
-
1
)
r
=
(
nz
*
s
.
expand_as
(
nz
)).
sum
(
1
).
view
(
-
1
)
output_features
=
aa
.
index_select
(
0
,
r
)
output_features
=
aa
.
index_select
(
0
,
r
)
dim_fn
(
dimension
,
'createMetadataForDenseToSparse'
)(
output_metadata
.
createMetadataForDenseToSparse
(
output_metadata
,
output_spatial_size
,
output_spatial_size
,
nz
.
cpu
(),
nz
.
cpu
(),
input
.
size
(
0
))
input
.
size
(
0
))
...
...
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