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

Update train.py #109

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update train.py #109

wants to merge 1 commit into from

Commits on Feb 2, 2023

  1. Update train.py

    A command like "python train.py task=Ant headless=True sim_device=cpu rl_device=cpu" can not work correctly.
    The reason is "rlg_config_dict" doesn't include the information of "rl_device".
    
    In the "a2c_common.py" of "rl_games", there is a line of code: "self.ppo_device = config.get('device', 'cuda:0')".
    So the RL algorithm will always only work on the cuda:0.
    Li-Guanda authored Feb 2, 2023
    Configuration menu
    Copy the full SHA
    ea21831 View commit details
    Browse the repository at this point in the history