Created
June 14, 2018 09:16
-
-
Save ikbendewilliam/bf74cf3820472aec84657bfc54f68c92 to your computer and use it in GitHub Desktop.
Code for the tutorial on medium: Reinforcement learning on Reversing Stones
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
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