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

RuntimeError: CUDA error: an illegal memory access was encountered #9

Open
b762927 opened this issue Jul 8, 2022 · 0 comments
Open

Comments

@b762927
Copy link

b762927 commented Jul 8, 2022

Traceback (most recent call last):
File "train_mpe.py", line 157, in
main(sys.argv[1:])
File "train_mpe.py", line 147, in main
total_num_steps = runner.run()
File "D:\off-policy-release\offpolicy\runner\mlp\base_runner.py", line 153, in run
env_info = self.collecter(explore=True, training_episode=True, warmup=False)
File "D:\off-policy-release\offpolicy\runner\mlp\mpe_runner.py", line 145, in shared_collect_rollout
self.train()
File "D:\off-policy-release\offpolicy\runner\mlp\base_runner.py", line 189, in batch_train
train_info, new_priorities, idxes = update(p_id, sample)
File "D:\off-policy-release\offpolicy\algorithms\maddpg\maddpg.py", line 117, in shared_train_policy_on_batch
rewards = to_torch(rewards).to(**self.tpdv).view(-1, 1)
RuntimeError: CUDA error: an illegal memory access was encountered
When I run the maddpg, it encount cuda error

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

1 participant