You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
I follow your code to get the hidden layer output of an RNN. But it failed when I using K.function([model.layers[0].input], [model.layers[-1].output]), which causes an error:
MissingInputError: ("An input of the graph, used to compute DimShuffle{x,x}(keras_learning_phase), was not provided and not given a value.Use the Theano flag exception_verbosity='high',for more information on this error.", keras_learning_phase)
So is there any trick in your code? Or probably because I load model with model_from_json and model.load_weights?
The text was updated successfully, but these errors were encountered:
Hi
I follow your code to get the hidden layer output of an RNN. But it failed when I using
K.function([model.layers[0].input], [model.layers[-1].output])
, which causes an error:MissingInputError: ("An input of the graph, used to compute DimShuffle{x,x}(keras_learning_phase), was not provided and not given a value.Use the Theano flag exception_verbosity='high',for more information on this error.", keras_learning_phase)
So is there any trick in your code? Or probably because I load model with
model_from_json
andmodel.load_weights
?The text was updated successfully, but these errors were encountered: