Commit 1a5fb80c authored by rusty1s's avatar rusty1s
Browse files

cat fix

parent 801970bf
...@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment