Skip to content

Instantly share code, notes, and snippets.

@standy66
Last active August 20, 2017 18:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save standy66/f53f404fd17bd6f76f85deee7ab4a8c7 to your computer and use it in GitHub Desktop.
Save standy66/f53f404fd17bd6f76f85deee7ab4a8c7 to your computer and use it in GitHub Desktop.
tf variable scope example
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