-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
../torch/File.lua:370 table index is nil #744
Comments
I have the same problem. root@ubuntu:/home/fengbin/texture2# th test.lua -input_image 11.jpg -model_t7 model.t7 -cpu |
I guess it is a platform problem,you could try it on X64 platform. |
I am also getting this on Raspberry Pi 3 any solution guys ? |
I get same problem: jcjohnson/torch-rnn#162 |
Same problem on Windows x64 Apparently,
which, if true, is kind of... |
The problem of the binary serialisation AFAIK is that different platforms set different sizes to different types. As specified in the issue you linked, if you need a serialized model to be portable, you can use the "ascii" option for |
But woudln't this cause a loss of data anyway - when it tries to fit the loaded 64-bit longs into 32-bit Windows longs? I don't know if it's a Lua issue, but I'd be perfectly ok to use a custom built Lua with correctly sized longs (or whatever other type(s) causing the problem) just for Torch. |
So, what is stopping us from |
Some of the file reader logic needs to be changed as well, see this branch. |
Sounds promising! I'm going to try building it under Win64... |
Ok, to actually compile it I had to fix the return type at torch/lib/TH/THFile.h:29. Also, the Now the next problem is cunn: I had to change variable types to
|
It is weird as the reset function from Linear should not be called when you require cunn... |
So it's in (update) |
You would need to change at least this function that now takes Actually you may also want to switch the Tensor structure to use |
Hmm, but why would anybody want to use 64-bit longs to store tensor size? Sounds like a huge waste... |
Some people have very specific use cases and may need this (see this PR for example) |
Interesting... But still, that fix seems to be for intermediate calculations. If it turns out to be really necessary though, then the Windows version is currently kind of broken... I wonder if a trivial search-replace |
I use openface in linux working well,but when I use openface on windows platform,it occurs errors.
'''../torch/File.lua:370 table index is nil''
Here is the error info
The text was updated successfully, but these errors were encountered: