Open no-wings opened 4 years ago
Hi,
For me to help me you have to be a bit more precise as to what exactly you did and which command you run to get this output. initialize
should exist in StateTSP
, see https://github.com/wouterkool/attention-learn-to-route/blob/a6d0623b24b74e4d73f2dc05eb39100835c5bf6e/problems/tsp/state_tsp.py#L43 so maybe you can debug what is the problem from there?
I'sorry but I meet the same problem when trying "python run.py --graph_size 20 --baseline rollout --run_name 'tsp20_rollout' ", can u help me?
Traceback (most recent call last):
File "run.py", line 172, in
Judging from your output, maybe it has something to do with running on multiple GPUs. Can you try on a single GPU? E.g. run 'CUDA_VISIBLE_DEVICES=0 python run.py ...'. Otherwise, maybe you can help debug why this error comes up, as the class StateTSP has the method initialize (see my earlier response)? Thanks!
I'sorry but I meet the same problem when trying "python run.py --graph_size 100 --load_path pretrained/tsp_100/epoch-99.pt" in ubuntu 18.04, can u help me?
Traceback (most recent call last):
File "run.py", line 172, in
Hi! I'm sorry to hear it's causing you trouble. Which version of Python are you using? See my earlier response, initialize
should be a static method of StateTSP
, see https://github.com/wouterkool/attention-learn-to-route/blob/a6d0623b24b74e4d73f2dc05eb39100835c5bf6e/problems/tsp/state_tsp.py#L43, so maybe you can help me and debug why it is missing?
I run this code in windows 10,and set the environment as the instruction,but always appear the erro:AttributeError: type object 'StateTSP' has no attribute 'initialize'.can u help me with the issue.