Created
July 27, 2018 06:21
-
-
Save Ouwen/beed8f475571f96d24971e8173772be7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import tensorflow as tf | |
g1 = tf.Graph() | |
with g1.as_default(): | |
v = tf.get_variable(name="v", shape=(), initializer=tf.glorot_uniform_initializer()) | |
saver = tf.train.Saver() | |
sess = tf.Session(graph=g1); | |
saver.restore(sess, "/tmp/model.ckpt") | |
sess.run(v) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment