from local

This commit is contained in:
dohe0342 2023-02-02 13:52:02 +09:00
parent 784ab0cfb1
commit 909ec64842
2 changed files with 1 additions and 1 deletions

View File

@ -409,7 +409,7 @@ class TransformerEncoder(Module):
self.enable_nested_tensor = enable_nested_tensor self.enable_nested_tensor = enable_nested_tensor
self.mask_check = mask_check self.mask_check = mask_check
def forward(self, src: Tensor, mask: Optional[Tensor] = None, src_key_padding_mask: Optional[Tensor] = None) -> Tensor: def forward(self, src: Tensor, mask: Optional[Tensor] = None, src_key_padding_mask: Optional[Tensor] = None) -> Tensor:
"""Pass the input through the encoder layers in turn. """Pass the input through the encoder layers in turn.
Args: Args: