Skip to content

Commit

Permalink
Remove manual typechecking
Browse files Browse the repository at this point in the history
  • Loading branch information
brianreicher committed Oct 12, 2023
1 parent dd42ad3 commit 37d704d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/raygun/torch/losses/BaseCompetentLoss.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ def set_requires_grad(self, nets:list, requires_grad=False) -> None:
requires_grad (``bool``):
Whether the networks require gradients or not.
"""

if not isinstance(nets, list): # TODO: remove, this should be redudant with type checking enforced
nets: list = [nets]
for net in nets:
if net is not None:
for param in net.parameters():
Expand Down

0 comments on commit 37d704d

Please sign in to comment.