Unverified Commit 0d1ba2dd authored by Partho's avatar Partho Committed by GitHub
Browse files

added type hints (#19076)

parent 6f25d107
...@@ -1194,11 +1194,11 @@ class SEWDEncoder(nn.Module): ...@@ -1194,11 +1194,11 @@ class SEWDEncoder(nn.Module):
def forward( def forward(
self, self,
hidden_states, hidden_states: torch.tensor,
attention_mask=None, attention_mask: Optional[torch.Tensor] = None,
output_attentions=False, output_attentions: bool = False,
output_hidden_states=False, output_hidden_states: bool = False,
return_dict=True, return_dict: bool = True,
): ):
max_encoder_length = hidden_states.shape[1] // self.config.squeeze_factor max_encoder_length = hidden_states.shape[1] // self.config.squeeze_factor
if attention_mask is None: if attention_mask is None:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment