jingwenli0312 / HCVRP_DRL

This repo implements our paper, "Deep Reinforcement Learning for Solving the Heterogeneous Capacitated Vehicle Routing Problem"
125 stars 30 forks source link

error:Was __classcell__ propagated to type.__new__? #9

Open xiaotang5051729 opened 7 months ago

xiaotang5051729 commented 7 months ago

Traceback (most recent call last): File "D:\tangqingxia\project\HFVRP_KZXB\HCVRP_DRL\fleet_v3\eval.py", line 225, in eval_dataset(dataset_path, width, opts.softmax_temperature, opts) File "D:\tangqingxia\project\HFVRP_KZXB\HCVRP_DRL\fleet_v3\eval.py", line 59, in evaldataset model, = load_model(opts.model, opts.obj) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\tangqingxia\project\HFVRP_KZXB\HCVRP_DRL\fleet_v3\utils\functions.py", line 75, in load_model from nets.attention_model import AttentionModel File "D:\tangqingxia\project\HFVRP_KZXB\HCVRP_DRL\fleet_v3\nets\attention_model.py", line 11, in from utils.beam_search import CachedLookup File "D:\tangqingxia\project\HFVRP_KZXB\HCVRP_DRL\fleet_v3\utils\beam_search.py", line 54, in class BatchBeam(NamedTuple): RuntimeError: class not set defining 'BatchBeam' as <class 'utils.beam_search.BatchBeam'>. Was classcell propagated to type.new?

xiaotang5051729 commented 7 months ago

image