"vscode:/vscode.git/clone" did not exist on "2411f0e465e761790879e605a4256f3d4afb7f82"
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):
def forward(
self,
hidden_states,
attention_mask=None,
output_attentions=False,
output_hidden_states=False,
return_dict=True,
hidden_states: torch.tensor,
attention_mask: Optional[torch.Tensor] = None,
output_attentions: bool = False,
output_hidden_states: bool = False,
return_dict: bool = True,
):
max_encoder_length = hidden_states.shape[1] // self.config.squeeze_factor
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