Comments (13)
A segmentation fault may be a sign of an installation error in pytorch_spline_conv
. What PyTorch version are you using?
Please confirm that
python setup.py install
python setup.py test
in pytorch_spline_conv
works and report again.
from pytorch_geometric.
0.4.1
Install runs fine but it's the same problem in test.
from pytorch_geometric.
Are you sure the kernel did rebuild? You can force this with
rm -rf build/ && python setup.py install
from pytorch_geometric.
still, the test fails with this:
test/test_backward.py ....Segmentation fault (core dumped)
from pytorch_geometric.
I had the same issue with all the mnist examples.
I ran python setup.py test
in pytorch_geometric and got:
test/transforms/test_local_cartesian.py Segmentation fault
from pytorch_geometric.
I've got the same issue w/ the qm9 example: Segmentation fault (core dumped)
from pytorch_geometric.
Could this be resolved by anyone?
from pytorch_geometric.
I have that all tests run successfully, but get problems when running my own model: It always runs for some epochs, but then i get problems:
Segmentation fault (core dumped)
or
free(): invalid size
Aborted (core dumped)
or
free(): invalid next size (normal)
Aborted (core dumped)
or
double free or corruption (out)
Aborted (core dumped)
or
Traceback (most recent call last):
File "first_test.py", line 101, in
loss = train(epoch)
File "first_test.py", line 83, in train
loss.backward()
File "/home//anaconda3/lib/python3.7/site-packages/torch/tensor.py", line 102, in backward
torch.autograd.backward(self, gradient, retain_graph, create_graph)
File "/home//anaconda3/lib/python3.7/site-packages/torch/autograd/init.py", line 90, in backward
allow_unreachable=True) # allow_unreachable flag
RuntimeError: could not compute gradients for some functions
or
corrupted size vs. prev_size
Aborted (core dumped)
or
munmap_chunk(): invalid pointer
Aborted (core dumped)
I think those are all the different error messages I get without changing any of my code.
I was not able to track down the error further than knowing it is somewhere in the backward step if I use SplineConv. When doing with torch.no_grad for the SplineConv layer I don't have issues.
p.s. running Ubuntu 18.04 with CPU.
from pytorch_geometric.
I think I know the issue. When feeding pseudo values which are not in [0,1], there is a disaster. Maybe there should be a test somewhere warning the user?
from pytorch_geometric.
Yes, this is not allowed! I could add an assertion, but this would result in unnecessary computations. Any idea?
from pytorch_geometric.
Mhh true. I think in the documentation there should be a warning.
And maybe when initializing the spline conv you could add a safe=True/False option. Depending on this it will do either
if safe:
def forward(...) safely
else:
def forward(...) as is...
this is ofc ugly and a dupication of code.
Then again i am bad at programming.
from pytorch_geometric.
I will definitively add a note in the documentation. I think i will add an assertion in the forward pass which gets only called once.
from pytorch_geometric.
Done!
from pytorch_geometric.
Related Issues (20)
- None edge_attr assertion in GeneralConv HOT 1
- Jaccard / Overlap Coefficient linking nodes
- Bug Report: Missing Keys in slice_dict for HeteroData Objects
- Code fail with torch_sparse/storage.py Error HOT 5
- GNNExplainer inconsistency with the paper?
- rdkit-based methods HOT 1
- Automatic conversion of raw Parameters for heterogeneous graph models HOT 2
- GAT and GATv2 return_attention_weights option
- `propagate` key word errors HOT 2
- Feat req: Pytorch 2.4
- TorchScript compilation of MessagePassing _check_input on torch 1.10.2
- Request for `RemoveSelfLoops` Transformation in PyG
- Downloading ENZYMES dataset yields TypeError HOT 1
- `torch_geometric.loader.utils.filter_custom_store` Doesn't Work with Edge Features
- AddMetaPaths throws MKL error HOT 2
- LLM + GNN Example Missing
- torch-scatter installation is very slow
- Ratio for num_neighbors in NeighborLoader / LinkNeighborLoader
- MessagePassing bugs when processing bipartite graph HOT 1
- For some indexes, batched_negative_sampling returns a FloatTensor
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_geometric.