Fate_7 2020-03-17 15:55
浏览 460

Torch7: cannot open <...> in mode w at /home/ethereal/torch/pkg/torch/lib/TH/THDiskFile.c:673

报错内容:

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,...})
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 miniconda安装不了
    • ¥20 python代码编写
    • ¥20 使用MPI广播数据遇到阻塞
    • ¥15 TinyMCE如何去掉自动弹出的“链接…”工具?
    • ¥15 微信支付转账凭证,如何解决
    • ¥15 在win10下使用指纹登录时,界面上的文字最后一个字产生换行现象
    • ¥20 使用AT89C51微控制器和MAX7219驱动器来实现0到99秒的秒表计数,有开始和暂停以及复位功能,下面有仿真图,请根据仿真图来设计c语言程序
    • ¥15 51单片机 双路ad同步采样
    • ¥15 使用xdocreport 生成word
    • ¥15 请教怎么用MATLAB求坐标