at line 244 of VRPModel.py.
This error seems to be caused by shape of route_open can not be aligned with other matrices in torch.cat. The route_open has shape (batch_size, problem_size) while other matrices have shape (batch_size, POMO_size). The shape unalignment may be caused by forgetting to reset the shape of route_open in VRPEnv.reset().
This code has a bug. It will report an error when
POMO_size
andproblem_size
are not equal. Here is the error information:The error is reported by following line:
at line 244 of VRPModel.py. This error seems to be caused by shape of
route_open
can not be aligned with other matrices intorch.cat
. Theroute_open
has shape(batch_size, problem_size)
while other matrices have shape(batch_size, POMO_size)
. The shape unalignment may be caused by forgetting to reset the shape ofroute_open
inVRPEnv.reset()
.I sincerely hope the author fix this bug so that other people can follow this work easiler.