Skip to content

Commit

Permalink
fix(param): exclude_cls param
Browse files Browse the repository at this point in the history
  • Loading branch information
piero2c authored Sep 13, 2023
1 parent 95d6e19 commit 3503870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archai/discrete_search/evaluators/nlp/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self, exclude_cls: Optional[List[nn.Module]] = None, trainable_only
"""

self.exclude_cls = [nn.Embedding] or exclude_cls
self.exclude_cls = exclude_cls or [nn.Embedding]
self.trainable_only = trainable_only

@overrides
Expand Down

0 comments on commit 3503870

Please sign in to comment.