How to represent the [variable_scope] and [get_variable] in tensorflow java ?
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Java
- Sterne
- 928
- Forks
- 227
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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?
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, die Dokumentation der TensorFlow Java API auf Entsprechungen zu den im Issue gezeigten Python-APIs variable_scope und get_variable zu prüfen. Stelle ein Java-Beispiel bereit, das die angeforderte Variablenerstellung und das angeforderte Scoping-Verhalten abdeckt, und kläre, ob eine direkte Entsprechung existiert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java, tensorflow
- Bereich
- machine-learning
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 30/100