vwxyzjn / cleanrl

High-quality single file implementation of Deep Reinforcement Learning algorithms with research-friendly features (PPO, DQN, C51, DDPG, TD3, SAC, PPG)
http://docs.cleanrl.dev
Other
4.91k stars 566 forks source link

Update rpo_continuous_action.py #396

Closed solismortis closed 1 year ago

solismortis commented 1 year ago

Fix RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!

Types of changes

Checklist:

If you need to run benchmark experiments for a performance-impacting changes:

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cleanrl ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 12, 2023 5:18pm
vwxyzjn commented 1 year ago

Thx for the fix!