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

theano.gof.fg.MissingInputError: (......(keras_learning_phase) When i use the Dropout layer #2771

Closed
alyato opened this issue May 21, 2016 · 5 comments

Comments

@alyato
Copy link

alyato commented May 21, 2016

hi guys. I meet the question when i load the predict function belongs to the graph
wrong
I know someone has issued this question But i still don't how to use K.learning_phase()

#2417

#2430

And if i remove the Dropout layer ,it work well.

thanks

@alyato alyato changed the title theano.gof.fg.MissingInputError: ("An input of the graph, used to compute DimShuffle{x,x}(keras_learning_phase) theano.gof.fg.MissingInputError: (......(keras_learning_phase) When i use the Dropout layer May 24, 2016
@alyato alyato closed this as completed May 24, 2016
@bottydim
Copy link
Contributor

Hi @alyato, how did you fix your problem, I am running into the same issue after a GRU followed by dropout

@alyato
Copy link
Author

alyato commented Jun 2, 2016

when i call the model.predict ,it show me this error.

SO i load my model and recompile it. Then i call model.predict,it works

If you want to get the output after very layer and use the dropout layer,
you have to set the keras_learning_phase value 0/1.

2016-05-25 4:59 GMT-06:00 Botty Dimanov notifications@github.com:

Hi @alyato https://github.com/alyato, how did you fix your problem, I
am running into the same issue after a GRU followed by dropout


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#2771 (comment)

@franciscovargas
Copy link

how do you recompile it ??? compile with the same arguments ? it does not sabotage the model being trained?

@alyato
Copy link
Author

alyato commented Jun 21, 2016

@franciscovargas first,you can save your model to yaml or json and save the weight to h5 format after calling the fit function.
then you need call the function model_from_json or model_from_yaml and load your weight when you want to call the predict function

@franciscovargas
Copy link

thanks so much !

On Tue, Jun 21, 2016 at 9:01 AM, alyato notifications@github.com wrote:

@franciscovargas https://github.com/franciscovargas first,you can save
your model to yaml or json and save the weight to h5 format after calling
the fit function.
then you need call the function model_from_json or model_from_yaml and
load your weight when you want to call the predict function


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#2771 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AFSJTEzTwK4qiUqwtIGBmtqfuMPgHrZzks5qN5p0gaJpZM4Ijs2q
.

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