samuelchapas / LSTMEncDecDL4J

Next Word Prediction DeepLearning4j
5 stars 0 forks source link

Exception in thread "main" java.lang.IllegalStateException: Cannot do forward pass: inputs not set #2

Open manishg22 opened 6 years ago

manishg22 commented 6 years ago

I'm trying to run the EncoderDecoderLSTM.java and getting this error

Exception in thread "main" java.lang.IllegalStateException: Cannot do forward pass: inputs not set at org.deeplearning4j.nn.graph.vertex.impl.MergeVertex.doForward(MergeVertex.java:76) at org.deeplearning4j.examples.recurrent.encdec.EncoderDecoderLSTM.output(EncoderDecoderLSTM.java:406) at org.deeplearning4j.examples.recurrent.encdec.EncoderDecoderLSTM.test(EncoderDecoderLSTM.java:387) at org.deeplearning4j.examples.recurrent.encdec.EncoderDecoderLSTM.train(EncoderDecoderLSTM.java:328) at org.deeplearning4j.examples.recurrent.encdec.EncoderDecoderLSTM.run(EncoderDecoderLSTM.java:239) at org.deeplearning4j.examples.recurrent.encdec.EncoderDecoderLSTM.main(EncoderDecoderLSTM.java:209)

Please help!

samuelchapas commented 6 years ago

hi @manishg22 , sorry for late response I haven't taken care of the repo. This issue was solved in the examples of deepLearning4j after making this observations to the issues of the repo, here is the fix deeplearning4j/dl4j-examples@2b117e2. Here is the original issue> deeplearning4j/deeplearning4j#5043. Please tell me if you solved it.

samuelchapas commented 6 years ago

By the way, are you developing a next word predictor? if so, we should make contributions to develop an opensource SpellingChecker and Next WordPredictions by using deepLearning4j. You can tell us what do you think!