AnswerDotAI / AnswerDotAI/fastprogress
TypeError: Outputs must be theano Variable or Out instances.
- 主要言語
- Jupyter Notebook
- スター
- 1.1k
- フォーク
- 104
- 平均マージ
- 1分
- マージ済み PR(30日)
- 1
説明
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.
コントリビューションガイド
調査の方向性
まず、カスタム Keras レイヤーの出力、特に as_emb を使って、示されている K.function の呼び出しを再現し、レイヤーがテンソルをどのように返すかを調べます。完了の条件は、報告された TypeError を発生させずにレイヤーの複数の出力を渡す、サポートされている方法を特定することです。issue ではリポジトリのファイルもテストも指定されていません。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- keras, python
- 領域
- machine-learning
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 20/100