Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

TypeError: Outputs must be theano Variable or Out instances.

オープン
#73 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
20/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
keras, python

調査の方向性

まず、カスタム Keras レイヤーの出力、特に as_emb を使って、示されている K.function の呼び出しを再現し、レイヤーがテンソルをどのように返すかを調べます。完了の条件は、報告された TypeError を発生させずにレイヤーの複数の出力を渡す、サポートされている方法を特定することです。issue ではリポジトリのファイルもテストも指定されていません。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Jupyter Notebook
スター
1.1k
フォーク
103
平均マージ
1分
マージ済み PR(30日)
1

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

AnswerDotAI/fastprogress のほかの issue

AnswerDotAI/fastprogress の issue をすべて見る

似ている issue

Machine Learning の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。