Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

TypeError: Outputs must be theano Variable or Out instances.

Aperta
#73 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

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

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.

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.

Lingua principale
Jupyter Notebook
Stelle
1.1k
Fork
103
Merge medio
1m
PR unite (30g)
1

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AnswerDotAI/fastprogress

Tutte le issue di AnswerDotAI/fastprogress

Issue simili

Altre issue su Machine Learning

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.