Skip to content
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

Open
lowtronik opened this issue Sep 17, 2017 · 9 comments
Open

I'm always getting the same error #24

lowtronik opened this issue Sep 17, 2017 · 9 comments

Comments

@lowtronik
Copy link

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

@lowtronik
Copy link
Author

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
train.lua:409: in function 'opfunc'
........
[ c] : in function 'dofile'

@bloons3
Copy link

bloons3 commented Sep 18, 2017

Seems to be related to jcjohnson/torch-rnn#195

@janelleshane
Copy link

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.

@JonathanFly
Copy link

Same, and also get it with tinyshakespeare and other data sets that should be plenty large.

Happens in CPU and GPU mode.

@janelleshane
Copy link

If you install the Feb. 28 commit instead of the most recent one, it works:

git clone https://github.com/larspars/word-rnn/tree/9595045b2cf0cfef519953ca6f051d1713b07648
luarocks install underscore.lua --from=http://marcusirven.s3.amazonaws.com/rocks/
luarocks install lrexlib-pcre

@jenniferzhu
Copy link

jenniferzhu commented Jan 3, 2018

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?

@nalden01
Copy link

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!

@Senso
Copy link

Senso commented Feb 28, 2018

Thank you nalden01! That fixed it for me.

@medori233
Copy link

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants