AnswerDotAI / AnswerDotAI/fastprogress

TypeError: Outputs must be theano Variable or Out instances.

Aperta
#73 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Jupyter Notebook
Stelle
1.1k
Fork
104
Merge medio
1m
PR unite (30g)
1

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia riproducendo la chiamata mostrata a K.function con gli output del layer Keras personalizzato, in particolare as_emb, e verifica come il layer restituisce i suoi tensori. Il lavoro è completato quando è stato identificato un modo supportato per passare i molteplici output del layer senza il TypeError segnalato; nell’issue non sono indicati file del repository o test.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
keras, python
Ambito
machine-learning
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
20/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.