We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94a685d commit 6387191Copy full SHA for 6387191
cleanrl/ppg_procgen.py
@@ -473,10 +473,10 @@ def get_pi(self, x):
473
optimizer.step()
474
optimizer.zero_grad() # This cannot be outside, else gradients won't accumulate
475
476
- except RuntimeError:
+ except RuntimeError as e:
477
raise Exception(
478
"if running out of CUDA memory, try a higher --n-aux-grad-accum, which trades more time for less gpu memory"
479
- )
+ ) from e
480
481
del m_aux_obs, m_aux_returns
482
writer.add_scalar("losses/aux/kl_loss", kl_loss.mean().item(), global_step)
0 commit comments