报错内容:
saving checkpoint to /fs/clip-scratch/hhe/opponent/cv/SoccerNeuralQLearner_lr0.000500_disc0.90_epochinf.t7
/home/ethereal/torch/install/bin/luajit: cannot open </fs/clip-scratch/hhe/opponent/cv/SoccerNeuralQLearner_lr0.000500_disc0.90_epochinf.t7> in mode w at /home/ethereal/torch/pkg/torch/lib/TH/THDiskFile.c:673
stack traceback:
[C]: at 0x7f3b753ac200
[C]: in function 'DiskFile'
/home/ethereal/torch/install/share/lua/5.1/torch/File.lua:385: in function 'save'
train_soccer_agent.lua:252: in main chunk
[C]: in function 'dofile'
...real/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x55ce087fe570
Makefile:108: recipe for target 'run_soccer' failed
make: *** [run_soccer] Error 1
报错处代码:
local filename = string.format('%s/%s_lr%.6f_disc%.2f_epoch%.2f.t7', opt.checkpoint_dir, opt.savefile, agent.lr, agent.discount, epoch)
print('saving checkpoint to ' .. filename)
torch.save(filename, {agent = agent, model = agent.network,...})