baselines icon indicating copy to clipboard operation
baselines copied to clipboard

Module 'tensorflow' has no attribute 'set_random_seed' error when running baselines

Open erfanMhi opened this issue 4 years ago • 1 comments

When I tried to run the PPO2 baseline, I encountered this error: Module 'tensorflow' has no attribute 'set_random_seed' As I dig deeper I realized that in the TF2 this function has been changed to tf.random.set_seed(seed). However, this change has not been projected to OpenAI GYM baselines. So, I opened this issue to inform you of this incompatibility.

erfanMhi avatar Oct 02 '20 15:10 erfanMhi

Did you cloned the 'tf2' branch to run this PPO2 agent (https://github.com/openai/baselines/tree/tf2/baselines/ppo2)?

paulaksm avatar Nov 10 '20 07:11 paulaksm