Segmentation Fault in Forward Loop of Edge Conv
See original GitHub issueHey there!
I’m testing out edge conv and am running into some issues. I’m getting a segmentation fault during the knn_graph generation:
line 13: 14361 Segmentation fault (core dumped) CUDA_VISIBLE_DEVICES="$gpuNum" python ...
Here’s output using pysnooper, I traced the error to this location:
Starting var:.. batch = None
Starting var:.. pos = tensor([[-3.1472e-01, -7.1309e-01, -1.5181e-01, 1.3493e+00, 1.0879e+00, 4.9691e-01, -1.54...
Starting var:.. self = Net( (conv1): EdgeConv(nn=Sequential( (0): Linear(in_features=50, out_features=64, bias=True) ...
17:39:03.629809 call 41 def forward(self, pos, batch):
17:39:03.680347 line 42 edge_index = knn_graph(pos, k=20, batch=batch)
~
Last line is where error is happening.
As more context, I’m generating my point cloud using a CNN, batch and positions are shown above, cannot seem to make it through the generation of the edge index.
Can you please help me out here?
Issue Analytics
- State:
- Created 4 years ago
- Comments:31 (31 by maintainers)
Top Results From Across the Web
Segmentation Fault in Forward Loop of Edge Conv · Issue #251
Hey there! I'm testing out edge conv and am running into some issues. I'm getting a segmentation fault during the knn_graph generation: line...
Read more >Why do I get a segmentation fault (SIGSEGV) when calling a ...
This error comes after I have created an instance of my graph convolutional neural network and am calling the forward method on it...
Read more >"Segmentation fault occurred" occurs in Fortran, but the error ...
One possible answer is that you have told the compiler to vectorize the loop, and that causes a seg fault due to fault...
Read more >Debugging Segmentation Faults - Google Sites
Segmentation faults are referred to as segfault, access violation or bus error. Hardware notifies the operating system about memory access violation. The OS ......
Read more >Segmentation fault (core dumped) in rosetta_scripts.default ...
I am in favour of opinion, that it would be better to convert expression "ii+1" to "ii" in the foregoing line. It is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah, torch_sparse works now. Let’s see if all of this did the trick.
All is good on my end!