Skip to content

Commit

Permalink
Fix yapf
Browse files Browse the repository at this point in the history
  • Loading branch information
runame committed Dec 12, 2023
1 parent a026ce7 commit c5e9a03
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions algorithmic_efficiency/workloads/wmt/wmt_pytorch/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,8 +578,7 @@ def __init__(self,
pre_ln=pre_ln) for _ in range(num_layers)
])
self.num_layers = num_layers
self.norm = (
nn.LayerNorm(d_model, eps=layer_norm_eps) if pre_ln else None)
self.norm = (nn.LayerNorm(d_model, eps=layer_norm_eps) if pre_ln else None)

def forward(self,
tgt: Tensor,
Expand Down

0 comments on commit c5e9a03

Please sign in to comment.