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
torch-sparse
Commits
a28accb6
Commit
a28accb6
authored
Dec 19, 2019
by
rusty1s
Browse files
typo
parent
bb963e32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torch_sparse/narrow.py
torch_sparse/narrow.py
+1
-1
No files found.
torch_sparse/narrow.py
View file @
a28accb6
...
@@ -22,7 +22,7 @@ def narrow(src, dim, start, length):
...
@@ -22,7 +22,7 @@ def narrow(src, dim, start, length):
index
,
value
,
sparse_size
,
rowptr
,
is_sorted
=
True
)
index
,
value
,
sparse_size
,
rowptr
,
is_sorted
=
True
)
elif
dim
==
1
:
elif
dim
==
1
:
# This is faster than accessing `csc()` in analogy to th
r
`dim=0` case.
# This is faster than accessing `csc()` in analogy to th
e
`dim=0` case.
(
row
,
col
),
value
=
src
.
coo
()
(
row
,
col
),
value
=
src
.
coo
()
mask
=
(
col
>=
start
)
&
(
col
<
start
+
length
)
mask
=
(
col
>=
start
)
&
(
col
<
start
+
length
)
...
...
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