Hanjun-Dai / graph_comb_opt

Implementation of "Learning Combinatorial Optimization Algorithms over Graphs"
https://arxiv.org/abs/1704.01665
MIT License
491 stars 135 forks source link

MaxCut loss always 0 #25

Closed abhishekm71 closed 4 years ago

abhishekm71 commented 4 years ago

Hi, Thanks for the code. I am trying to run the MaxCut algorithm, but it seems that the loss is always 0. Any idea what could be going wrong? Thanks

Hanjun-Dai commented 4 years ago

Hi, are you using py2 or 3? The division behavior is different in py3 and py3

abhishekm71 commented 4 years ago

Thanks a lot for replying. Yes, I was using the incorrect python version.