Unverified Commit 220672ec authored by Matthias Fey's avatar Matthias Fey Committed by GitHub
Browse files

Merge pull request #64 from mariogeiger/patch-1

Integer division of tensors using div or / is deprecated
parents 9586b8be d24a4533
......@@ -277,7 +277,7 @@ class SparseStorage(object):
idx = self.sparse_size(1) * self.row() + self.col()
row = idx / num_cols
row = idx // num_cols
col = idx % num_cols
return SparseStorage(row=row, rowptr=None, col=col, value=self._value,
......
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