Skip to content

Commit

Permalink
Fix yapf
Browse files Browse the repository at this point in the history
  • Loading branch information
runame committed Dec 11, 2023
1 parent dedef80 commit 03a200f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions algorithmic_efficiency/workloads/wmt/wmt_pytorch/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,7 @@ def __init__(self,
self.enable_nested_tensor = enable_nested_tensor
self.mask_check = mask_check

def forward(self,
src: Tensor,
mask: Optional[Tensor] = None) -> Tensor:
def forward(self, src: Tensor, mask: Optional[Tensor] = None) -> Tensor:
"""Pass the input through the encoder layers in turn.
Args:
Expand Down Expand Up @@ -494,9 +492,7 @@ def __init__(self,

self.activation = activation

def forward(self,
src: Tensor,
src_mask: Optional[Tensor] = None) -> Tensor:
def forward(self, src: Tensor, src_mask: Optional[Tensor] = None) -> Tensor:
r"""Pass the input through the encoder layer.
Args:
Expand Down

0 comments on commit 03a200f

Please sign in to comment.