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

What causes the following error?Assertion `idx_map[act] >= 0...’ #32

Open NH333 opened 7 months ago

NH333 commented 7 months ago

This problem always occurs when the program is executed. I don’t know if it is a problem with my own data and how to avoid it? QNet::SetupGraphInput(std::vector&, std::vector<std::shared_ptr >&, std::vector<std::vector>&, const int): Assertion `idx_map[act] >= 0 && act >= 0 && act num_nodes' failed. _idx_map[act]=-1_