AnswerDotAI / AnswerDotAI/fastprogress
TypeError: Outputs must be theano Variable or Out instances.
- Langage dominant
- Jupyter Notebook
- Étoiles
- 1.1k
- Forks
- 103
- Merge moyen
- 1 min
- PR mergées (30 j)
- 1
Description
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.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par reproduire l’appel K.function montré avec les sorties de la couche Keras personnalisée, en particulier as_emb, et examinez comment la couche renvoie ses tenseurs. C’est terminé lorsqu’une méthode prise en charge pour transmettre les sorties multiples de la couche sans le TypeError signalé a été identifiée ; aucun fichier du dépôt ni aucun test n’est mentionné dans l’issue.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- keras, python
- Domaine
- machine-learning
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 20/100