使用Windows OS的lua中的torch.loadascii模型

问题描述

我正在尝试使用luajit 2.1,lua 5.1在Windows机器上执行local data = torch.load("some model.t7","ascii")。但是,此问题是由特定模型引起的。

Starting Lua 5.1
package loaded ...
loading model ...
Warning: Failed to load function from bytecode: (binary): cannot load incompatible bytecodeWarning:
Failed to load function from bytecode: [string "5"]:1: unexpected symbol near '5'Warning: 
Failed to load function from bytecode: 
(binary): cannot load incompatible bytecodeC:\torch\lua\torch\File.lua:259: read error: 
read 0 blocks instead of 1 at C:\Users\James\AppData\Local\Temp\luarocks_torch-scm-1-4630\torch7\lib\TH\THdiskFile.c:352
Press any key to continue . . .

如果您以前曾遇到过此问题,请提供帮助。

我之前已经成功加载了其他模型,所以我认为该模型有问题,但是我不确定到底是什么。

预先感谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)