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

TypeError: Outputs must be theano Variable or Out instances. #73

Open
Prashanth1608 opened this issue Nov 21, 2020 · 0 comments
Open

TypeError: Outputs must be theano Variable or Out instances. #73

Prashanth1608 opened this issue Nov 21, 2020 · 0 comments

Comments

@Prashanth1608
Copy link

In custom keras layers, I am trying to get a layer's output which is returning three different tensors in a list.
below is the code:
test_fn = K.function([model.get_layer('sentence_input').input, model.get_layer('sentence2_input').input,
model.get_layer('sentence3_input').input, K.learning_phase()],
[model.get_layer('as_weights').output, model.get_layer('p_t').output,
model.get_layer('as_emb').output])

model.get_layer('as_emb').output is the layer I am getting the error message.

The objective is I want to pass a layer to theano.function's output attribute, which returns multiple tensors in a list. How to do this without the above error?

I am very much happy if someone helps me out in this regard.

Thanks.

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

1 participant