Comments (13)
And,torch-scatter torch-cluster torch-spline-conv ,I can succee to import these.I don't know why not to import torch_sparse
from pytorch_sparse.
@rusty1s also getting this error on the import:
RuntimeError: Detected that PyTorch and torch_sparse were compiled with different CUDA versions. PyTorch has CUDA version 10.1 and torch_sparse has CUDA version 0.0. Please reinstall the torch_sparse that matches your PyTorch install.
scatter, cluster, and spline-conv seem to be importing fine. sparse is the only that is giving me an error.
any updates on how to fix this??
from pytorch_sparse.
hi guys, I'm having this weird issue
install torch-sparse is fine, but when it comes to import torch_sparse, it comes up with an issue like this:
RuntimeError:
attribute assignment is not defined on torch.torch_sparse.storage.SparseStorage:
File "XX/XX/anaconda3/envs/XX/lib/python3.6/site-packages/torch_sparse/storage.py",line145
def empty(self):
self = SparseStorage.new(SparseStorage)
self._row = None
~~~~~~~~~~~~~ < --- HERE
self._rowptr = None
self._value = None
so, i checked this storage.py file and everything seems fine, i have also uninstalled torch-sparse and re install it for many times.
emmmm, anyone know what is happening?
from pytorch_sparse.
If you want to compile with CUDA support although not having a GPU, you can use the FORCE_CUDA=1
environment variable. Alternatively, you can just use one of the provided Python wheels for your respective OS/CUDA version (see README).
from pytorch_sparse.
Yes ok thanks! In the previous version, I don't recall needing that env. variable.
But then, torch_sparse
should work with torch cpu and do not check cuda version.
If not already done, it would be nice/wise to shield all cuda ops like torch does under .cuda.
.
from pytorch_sparse.
RuntimeError: Detected that PyTorch and torch_sparse were compiled with different CUDA versions. PyTorch has CUDA version 10.1 and torch_sparse has CUDA version 0.0. Please reinstall the torch_sparse that matches your PyTorch install.
from pytorch_sparse.
Pytorch version : 1.4.0+cuda92
Pytorch_sparse version: 0.5.1
Cuda version : 10.1
I can pip install torch_sparse,but When importing torch_sparse it fails to detect:
Traceback (most recent call last):
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/torch_sparse/init.py", line 13, in
'_version', [osp.dirname(file)]).origin)
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/torch/_ops.py", line 106, in load_library
ctypes.CDLL(path)
File "/home/ubuntu/anaconda3/lib/python3.7/ctypes/init.py", line 356, in init
self._handle = _dlopen(self._name, mode)
OSError: libcusparse.so.9.2: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/torch_sparse/init.py", line 22, in
raise OSError(e)
OSError: libcusparse.so.9.2: cannot open shared object file: No such file or directory
from pytorch_sparse.
Please help me ,thank you
from pytorch_sparse.
OSError: libcusparse.so.9.2: cannot open shared object file: No such file or directory
It looks like it is missing cusparse
which is required for torch-sparse
usage.
from pytorch_sparse.
Which PyTorch version are you using?
from pytorch_sparse.
Which PyTorch version are you using?
1.8.0a0,compiled from source
from pytorch_sparse.
Related to pyg-team/pytorch_geometric#2146.
from pytorch_sparse.
This issue had no activity for 6 months. It will be closed in 2 weeks unless there is some new activity. Is this issue already resolved?
from pytorch_sparse.
Related Issues (20)
- how to build form source with CUDA HOT 1
- (Import Erro)undefined symbol: _ZN5torch3jit17parseSchemaOrNameERKSs HOT 2
- "OSError: /lib64/libm.so.6: version `GLIBC_2.29' not found" with torch-sparse 0.6.18+pt20cu118 HOT 1
- Time complexity of Sparse Sparse Matrix Multiplication? HOT 2
- ImportError: Could not find module '_version_cpu', after build from source HOT 1
- Benchmarks result in `INTERNAL ASSERT FAILED` when run with device `mps` HOT 3
- Little idea about sparse matrix multiplication in torch_sparse HOT 6
- Batch in spspmm? HOT 4
- Is there a convenient way to Substract two vectors? HOT 2
- ROCm wheels
- High dimensional Sparse Matrix Multiplication HOT 1
- Factorization? HOT 1
- Branching gradient flow HOT 4
- SparseTensor or SparseStorage for data HOT 5
- Sparse-sparse matrix multiplication break GPU memory when dense does not. HOT 4
- Unexpected behavior sparse add HOT 1
- Sparse Bilinear map HOT 4
- pyproject.toml doesn't list as dependencies modules imported at runtime: torch, torch_scatter
- required shared library libtorch.so not found HOT 1
- torch_sparse.tensor.SparseTensor.partition causes "core dumped" HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytorch_sparse.