tensorflow / tensorflow/java

How to represent the [variable_scope] and [get_variable] in tensorflow java ?

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

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

主要言語
Java
スター
928
フォーク
227
PR マージ指標
30日以内にマージされた PR はありません

説明

HI :
write the tensorflow code in python ,we always use with the variable_scope and get_variable method , like this

        with tf.compat.v1.variable_scope('Qifficulty'):
            question_difficulty_weights = tf.compat.v1.get_variable('weights', [q.get_shape()[-1], 1],
                                                          initializer= tf.initializers.glorot_uniform(seed=0))
                                                          # layers.xavier_initializer(seeed=0))
            question_difficulty_biases = tf.compat.v1.get_variable('biases', [1],
                                                         initializer=tf.compat.v1.zeros_initializer())
            question_difficulty = tf.nn.tanh(tf.matmul(q, question_difficulty_weights) + question_difficulty_biases)
 but in  java ,we can not use  with key word , and   I also can not  find [variable_scope] and [get_variable]  two apis.  

I just want to know How to represent the [variable_scope] and [get_variable] in tensorflow java ,could we give me a damo about these?

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

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

はじめの一歩

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

調査の方向性

まず、Issue に示されている Python の variable_scope API と get_variable API に相当するものがないか、TensorFlow Java API のドキュメントを確認してください。要求された変数の作成とスコープ動作をカバーする Java の例を提示し、直接相当するものが存在するかどうかを明確にしてください。

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

評価

技術スタック
java, tensorflow
領域
machine-learning
issue の種類
ドキュメント
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

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

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