Skip to content

Instantly share code, notes, and snippets.

@MechCoder
Created November 13, 2016 15:54
Show Gist options
  • Save MechCoder/24b17ec0a8e530d4c3bfffe661361467 to your computer and use it in GitHub Desktop.
Save MechCoder/24b17ec0a8e530d4c3bfffe661361467 to your computer and use it in GitHub Desktop.
import tensorflow as tf
class test(object):
def test_func(self, pass=1):
to_hidden_W = tf.get_variable(
"to_hidden_W",
shape=[2, 2])
with tf.variable_scope("Model", reuse=True):
a = test()
for v in tf.all_variables():
print(v.name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment