Skip to content

Commit

Permalink
Merge pull request awjuliani#10 from wwxFromTju/master
Browse files Browse the repository at this point in the history
Fix model loading behavior
  • Loading branch information
awjuliani authored Mar 2, 2017
2 parents fbeae7e + f711b86 commit 1447dc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Double-Dueling-DQN.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,11 @@
" os.makedirs(path)\n",
"\n",
"with tf.Session() as sess:\n",
" sess.run(init)\n",
" if load_model == True:\n",
" print 'Loading Model...'\n",
" ckpt = tf.train.get_checkpoint_state(path)\n",
" saver.restore(sess,ckpt.model_checkpoint_path)\n",
" sess.run(init)\n",
" updateTarget(targetOps,sess) #Set the target network to be equal to the primary network.\n",
" for i in range(num_episodes):\n",
" episodeBuffer = experience_buffer()\n",
Expand Down Expand Up @@ -371,6 +371,7 @@
}
],
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python 2",
"language": "python",
Expand Down

0 comments on commit 1447dc5

Please sign in to comment.