grauwolf32 / openai-game

Handmade environments and trained models.
1 stars 0 forks source link

U.save_state(fname) doesn't exist #2

Open itzmestar opened 6 years ago

itzmestar commented 6 years ago

hi, In newer baselines version, save_state function has been removed from baselines.common.tf_util

in run_acktr.py, line 46 gives error.

can be replaced with these lines: os.makedirs(os.path.dirname(fname), exist_ok=True) saver = tf.train.Saver() saver.save(tf.get_default_session(), fname)

thanks

grauwolf32 commented 6 years ago

Fixed )