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

trap divide error #24

Open
camilocs89 opened this issue Apr 27, 2020 · 2 comments
Open

trap divide error #24

camilocs89 opened this issue Apr 27, 2020 · 2 comments

Comments

@camilocs89
Copy link

Hi!
I'm training another combinatorial problem and it works well. But, sometimes when I run ./run_nstep_dqn.sh this is stopped without error message.

In the system log appears this:

kernel: traps: python[7276] trap divide error ip:7f96bd2cea0b sp:7fffbb710190 error:0 in libcapmds.so[7f96bd202000+106000]

I think that occur because is trying divide a floating-point by zero, but what could be the cause of it?
Thanks.

@Hanjun-Dai
Copy link
Owner

Hello,

Sorry I have no idea where it could be wrong.
One place to look at is the per step reward, which will be divided by max norm. If it becomes zero then that might be problematic.

https://github.com/Hanjun-Dai/graph_comb_opt/blob/master/code/s2v_maxcut/maxcut_lib/src/lib/maxcut_env.cpp#L71

@camilocs89
Copy link
Author

Yes, that was the problem, thank you!

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

2 participants