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
d14110e1
Commit
d14110e1
authored
Jan 26, 2020
by
rusty1s
Browse files
typo
parent
6f55824d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torch_sparse/tensor.py
torch_sparse/tensor.py
+1
-1
No files found.
torch_sparse/tensor.py
View file @
d14110e1
...
...
@@ -498,7 +498,7 @@ SparseTensor.mul_nnz_ = mul_nnz_
# Fix for PyTorch<=1.3 (https://github.com/pytorch/pytorch/pull/31769):
TORCH_MAJOR
=
int
(
torch
.
__version__
.
split
(
'.'
)[
0
])
TORCH_MINOR
=
int
(
torch
.
__version__
.
split
(
'.'
)[
1
])
if
(
TORCH_MAJOR
<
=
1
)
or
(
TORCH_MAJOR
==
1
and
TORCH_MINOR
<
4
):
if
(
TORCH_MAJOR
<
1
)
or
(
TORCH_MAJOR
==
1
and
TORCH_MINOR
<
4
):
def
add
(
self
,
other
):
return
self
.
add
(
other
)
if
torch
.
is_tensor
(
other
)
else
NotImplemented
...
...
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