openai / baselines

OpenAI Baselines: high-quality implementations of reinforcement learning algorithms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

erfanMhi opened this issue · 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.

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