Last active
August 20, 2017 18:27
-
-
Save standy66/f53f404fd17bd6f76f85deee7ab4a8c7 to your computer and use it in GitHub Desktop.
tf variable scope example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with tf.name_scope("subgraph_1"): | |
with tf.variable_scope(tf.get_variable_scope(), resue=False): | |
y_1 = output(x_1) | |
with tf.name_scope("subgraph_2"): | |
with tf.variable_scope(tf.get_variable_scope(), reuse=True): | |
y_2 = output(x_2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment