You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any other relevant information:
The pip installation is successful, but when I try import torch_sparse, I got the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/anaconda2/envs/svg/lib/python3.7/site-packages/torch_sparse/__init__.py", line 34, in <module>
from .storage import SparseStorage # noqa
File "/home/anaconda2/envs/svg/lib/python3.7/site-packages/torch_sparse/storage.py", line 21, in <module>
class SparseStorage(object):
File "/home/xtli/anaconda2/envs/svg/lib/python3.7/site-packages/torch/jit/_script.py", line 979, in script
_compile_and_register_class(obj, _rcb, qualified_name)
File "/home/anaconda2/envs/svg/lib/python3.7/site-packages/torch/jit/_script.py", line 72, in _compile_and_register_class
torch._C._jit_script_class_compile(qualified_name, ast, defaults, rcb)
RuntimeError:
attribute assignment is not defined on __torch__.torch_sparse.storage.SparseStorage:
File "/home/anaconda2/envs/svg/lib/python3.7/site-packages/torch_sparse/storage.py", line 145
def empty(self):
self = SparseStorage.__new__(SparseStorage)
self._row = None
~~~~~~~~~~~~~~~~ <--- HERE
self._rowptr = None
self._value = None
This looks like some TorchScript internals changed in PyTorch master. We will fix that once a new official PyTorch release lands. We cannot fix that for now to guarantee correct behavior with the current PyTorch release.
馃摎 Installation
Environment
The pip installation is successful, but when I try
import torch_sparse
, I got the following error:Checklist
nvcc
.The text was updated successfully, but these errors were encountered: