報錯內容:
```
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,...})
```
uj5u.com熱心網友回復:
https://blog.csdn.net/u014421266/article/details/50646794 這個文章里面提到權限錯誤,但沒有給方法。我自己用sudo解決權限,然后創建了目錄就可以運行了轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/36678.html
標籤:人工智能技術
