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

minimal changes to enable agent.act on GPU #1

Closed
wants to merge 1 commit into from

Conversation

MandiZhao
Copy link

Small changes to agent.act to move cpu tensors to gpu, so that when the agent is loaded to EnvRunner and gets mapped to a GPU, the stepping time (either train Or eval) is greatly reduced.
Notice how calling an extra .cpu() before tensor.numpy() doesn't do any damage.

@stepjam stepjam closed this Oct 7, 2021
@stepjam
Copy link
Owner

stepjam commented Oct 7, 2021

Thanks Mandi; ended up adding this in a slightly different way in the end

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

Successfully merging this pull request may close these issues.

None yet

2 participants