Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On segmentation faults happening in the line.cpp Update method #25

Open
benelot opened this issue Apr 16, 2018 · 4 comments
Open

On segmentation faults happening in the line.cpp Update method #25

benelot opened this issue Apr 16, 2018 · 4 comments

Comments

@benelot
Copy link

benelot commented Apr 16, 2018

With one of my network graphs, I had several segmentation faults occurring, which I could locate within the update method of LINE. The problem is that if the embeddings get very large in magnitude within some of the dimensions, the variables start to overflow and then the sigmoid method segfaults. I could mitigate the problem by setting "typedef double real;" instead of "typedef float real;" to use double precision instead of single precision. This resolved the segmentation faults, at least within my networks because of the enlarged variable space, however, when the embeddings are concatenated in the end, it again results in overflown embeddings. To solve the problem completely, it was necessary to write my own concatenate method. Just in case somebody runs into the same problems.

@GamalC
Copy link

GamalC commented Jun 7, 2018

This worked for me. Thanks!

@kinkunchan
Copy link

This worked for me! Thanks!

@960924
Copy link

960924 commented Oct 29, 2019

This worked for me! Thanks!

Hello, how did you solve it?

@dsj96
Copy link

dsj96 commented Nov 1, 2020

This worked for me. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants