Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pytorch tutorial fixed position missing torch.manual_seed() #7

Open
omry opened this issue Aug 15, 2018 · 1 comment
Open

pytorch tutorial fixed position missing torch.manual_seed() #7

omry opened this issue Aug 15, 2018 · 1 comment

Comments

@omry
Copy link

omry commented Aug 15, 2018

in pytorch tutorial, block :
Let's try with a fixed initial position

does not actually fixes the position, torch manual seed should also be used.

agent = DQNAgent(env.observation_space, env.action_space)
seed = 10
torch.manual_seed(seed)
env.run(agent, episodes=300, seed=seed)
@oddskool
Copy link
Contributor

ok. do you mind opening a pull-request for that ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants