Skip to content

Instantly share code, notes, and snippets.

@ikbendewilliam
Created June 14, 2018 09:16
Show Gist options
  • Save ikbendewilliam/bf74cf3820472aec84657bfc54f68c92 to your computer and use it in GitHub Desktop.
Save ikbendewilliam/bf74cf3820472aec84657bfc54f68c92 to your computer and use it in GitHub Desktop.
Code for the tutorial on medium: Reinforcement learning on Reversing Stones
def load_model(name='model.ckpt', games = 100):
global session
tf.reset_default_graph()
initialise_tf()
session = tf.Session()
tf.train.Saver().restore(session, "./models/" + name)
benchmark(games)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment