-
Notifications
You must be signed in to change notification settings - Fork 103
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
I'm always getting the same error #24
Comments
Also, when i run your Bipolar Activation Functions parameters , right after the 'cloning rnn' ,'cloning criterion' i get: /luajit: train.lua:409: attempt to call method resize (a nil value) traceback |
Seems to be related to jcjohnson/torch-rnn#195 |
I have this issue, too, on a mac and on an AWS instance: // /luajit: bad argument #2 to '?' (start index out of bound at /... /generic/Tensor.c:984 It looks like the same error as jcjohnson/torch-rnn#195 as @bloons3 mentioned. However, it doesn't seem to be related to using a smaller dataset (unless the requirements have changed) because as @lowtronik points out, it occurs with the tinyshakespeare dataset that has worked for previous versions of word-rnn. |
Same, and also get it with tinyshakespeare and other data sets that should be plenty large. Happens in CPU and GPU mode. |
If you install the Feb. 28 commit instead of the most recent one, it works:
|
Is there any new update on this issue? I still got the same error... @janelleshane This old version of codes worked for the data/tinyshakespeare date, but why? Is there any difference other than this issue between the Feb 28 repository and the current one? |
Hello everyone.. was getting this same problem myself. Did some digging in the source code.. error was occurring in CharSplitLMMinibatchLoader.lua. Error happened because none of the data was being set aside for a test fraction by default (train_frac was set to 0.95, val_frac to 0.05). Changing the -train_frac flag to 0.9 fixed the problem (sets aside 90% for training, 5 for validation, 5 for testing). Being an rnn noob.. I don't entirely know what this means, but it fixed the problem for me! |
Thank you nalden01! That fixed it for me. |
@nalden01 hello i'd like to ask you for this problem, i'm new to lua and torch, so how do i set my code to avoid this issue from happening? |
After the data are prepaired i get this , with the tinyshakespeare data or my data
// /luajit: bad argument #2 to '?' (start index out of bound at /... /generic/Tensor.c:984
The text was updated successfully, but these errors were encountered: