Skip to content

Commit

Permalink
wip: fixing device id (#66)
Browse files Browse the repository at this point in the history
Summary:
High, many people do not have the second CUDA device. Personally spent a lot of time debugging cuda error and trying to understand where the error comes from. :)

Pull Request resolved: #66

Reviewed By: jb3618columbia

Differential Revision: D53948188

Pulled By: rodrigodesalvobraz

fbshipit-source-id: 460ad0dcebcbd593ec4fb13f2b25960983c20bab
  • Loading branch information
cryptexis authored and facebook-github-bot committed Feb 20, 2024
1 parent be57887 commit 718ce57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pearl/utils/scripts/benchmark_offline_rl.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def evaluate_offline_rl(


if __name__ == "__main__":
device_id = 1 # use -1 for CPU, 0, 1, for cuda
device_id = 0 # use -1 for CPU, 0, 1, for cuda
experiment_seed = 100
env_name = "HalfCheetah-v4"
env = GymEnvironment(env_name)
Expand Down

0 comments on commit 718ce57

Please sign in to comment.