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

Training two layer networks fails with gradient errors #108

Open
mihaelacr-google opened this issue Nov 13, 2016 · 2 comments
Open

Training two layer networks fails with gradient errors #108

mihaelacr-google opened this issue Nov 13, 2016 · 2 comments

Comments

@mihaelacr-google
Copy link
Contributor

I have added a createBidi2 method in the CLSTMText class function, but training 2 layer networks fails with a gradient assertion error, regardless of the used learning rate and hidden layer sizes.

My code to create two layer here.

The error I am getting is
clstmfiltertrain: clstm.cc:642: void ocropus::GenericNPLSTM<F, G, H>::backward() [with int F = 1; int G = 2; int H = 2]: Assertion `!anynan(out)' failed.

Looks like there is an error when computing the gradient of two layer networks.

@abhigarg
Copy link

I am facing the same problem.

@lorenzob
Copy link

lorenzob commented Oct 4, 2017

If this can be of any help to someone, I got the exact same error when I run the clstmocrtrain without the corresponding *.gt.txt files in the image folder.

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

3 participants