Skip to content

Commit

Permalink
Lint project
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasHedegaard committed Apr 17, 2023
1 parent 706369c commit 6594eb8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion ride/unfreeze.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def freeze_layers_except_names(
n.replace(".weight", "").replace(".bias", "") for n in names_to_unfreeze
]
unfrozen_names = []
for (name, layer) in parent_module.named_modules():
for name, layer in parent_module.named_modules():
requires_grad = any(n in name for n in names_to_unfreeze)
if requires_grad:
unfrozen_names.append(name)
Expand Down
1 change: 0 additions & 1 deletion tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ def __init__(self, hparams: DictLike):


def test_init_order():

module = InitOrderModule({"msg": []})

assert module.hparams.msg == [
Expand Down

0 comments on commit 6594eb8

Please sign in to comment.