Skip to content

Commit

Permalink
remove assert
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobettini committed Nov 8, 2023
1 parent acc138d commit 1f85bf2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions benchmarl/experiment/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import importlib

import math
import os
import time
from collections import OrderedDict
Expand Down Expand Up @@ -641,7 +640,6 @@ def _optimizer_loop(self, group: str) -> TensorDictBase:

grad_norm = self._grad_clip(optimizer)

assert not math.isnan(grad_norm)
training_td.set(
f"grad_norm_{loss_name}",
torch.tensor(grad_norm, device=self.config.train_device),
Expand Down

0 comments on commit 1f85bf2

Please sign in to comment.