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
1a5fb80c
Commit
1a5fb80c
authored
Jan 26, 2020
by
rusty1s
Browse files
cat fix
parent
801970bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
torch_sparse/cat.py
torch_sparse/cat.py
+4
-4
No files found.
torch_sparse/cat.py
View file @
1a5fb80c
...
@@ -126,13 +126,13 @@ def cat(tensors, dim):
...
@@ -126,13 +126,13 @@ def cat(tensors, dim):
old_storage
=
tensors
[
0
].
storage
old_storage
=
tensors
[
0
].
storage
storage
=
old_storage
.
__class__
(
storage
=
old_storage
.
__class__
(
tensors
[
0
].
storage
.
index
,
row
=
old_storage
.
_row
,
rowptr
=
old_storage
.
_rowptr
,
col
=
old_storage
.
_col
,
value
=
torch
.
cat
(
values
,
dim
=
dim
-
1
),
value
=
torch
.
cat
(
values
,
dim
=
dim
-
1
),
sparse_size
=
old_storage
.
sparse_size
(),
sparse_size
=
old_storage
.
sparse_size
(),
rowcount
=
old_storage
.
_rowcount
,
rowptr
=
old_storage
.
_rowptr
,
colcount
=
old_storage
.
_colcount
,
colptr
=
old_storage
.
_colptr
,
colptr
=
old_storage
.
_colptr
,
colcount
=
old_storage
.
_colcount
,
csr2csc
=
old_storage
.
_csr2csc
,
csr2csc
=
old_storage
.
_csr2csc
,
csc2csr
=
old_storage
.
_csc2csr
,
csc2csr
=
old_storage
.
_csc2csr
,
is_sorted
=
True
,
is_sorted
=
True
,
...
...
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