Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
update inits (#4061)
Browse files Browse the repository at this point in the history
  • Loading branch information
klshuster authored Oct 8, 2021
1 parent 8a2840c commit f034747
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions parlai/agents/transformer/modules/decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __init__(
variant: str = 'aiayn',
**kwargs,
):
super().__init__(**kwargs)
super().__init__()

def _default(val, default):
"""
Expand Down Expand Up @@ -215,7 +215,7 @@ def __init__(
n_positions: Optional[int] = None,
**kwargs,
):
super().__init__(**kwargs)
super().__init__()
self.opt = opt

def _default(val, default):
Expand Down
4 changes: 2 additions & 2 deletions parlai/agents/transformer/modules/encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(
variant: Optional[str] = None,
**kwargs,
):
super().__init__(**kwargs)
super().__init__()

def _default(val, default):
"""
Expand Down Expand Up @@ -141,7 +141,7 @@ def __init__(
output_scaling: Optional[float] = None,
**kwargs,
):
super().__init__(**kwargs)
super().__init__()

def _default(val, default):
return val if val is not None else default
Expand Down

0 comments on commit f034747

Please sign in to comment.