Skip to content

Instantly share code, notes, and snippets.

@YusufuShehu
Created February 20, 2020 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YusufuShehu/19cf57ccc908ccd69e6969d9e471cfc4 to your computer and use it in GitHub Desktop.
Save YusufuShehu/19cf57ccc908ccd69e6969d9e471cfc4 to your computer and use it in GitHub Desktop.
Stacktrace
Exception in thread "main" java.lang.IllegalStateException: Invalid input: expected input of type RNN, got InputTypeFeedForward(400)
at org.deeplearning4j.nn.conf.preprocessor.RnnToFeedForwardPreProcessor.getOutputType(RnnToFeedForwardPreProcessor.java:104)
at org.deeplearning4j.nn.conf.ComputationGraphConfiguration.getLayerActivationTypes(ComputationGraphConfiguration.java:521)
at org.deeplearning4j.nn.conf.ComputationGraphConfiguration.addPreProcessors(ComputationGraphConfiguration.java:449)
at org.deeplearning4j.nn.conf.ComputationGraphConfiguration$GraphBuilder.build(ComputationGraphConfiguration.java:1201)
at org.deeplearning4j.nn.modelimport.keras.KerasModel.getComputationGraphConfiguration(KerasModel.java:394)
at org.deeplearning4j.nn.modelimport.keras.KerasModel.getComputationGraph(KerasModel.java:415)
at org.deeplearning4j.nn.modelimport.keras.KerasModel.getComputationGraph(KerasModel.java:404)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment