Skip to content

Commit

Permalink
fix param doc (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuacakuaca authored Mar 27, 2024
1 parent a15dad4 commit 3c91736
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions i6_models/assemblies/conformer/conformer_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__(self, cfg: ConformerBlockV1Config):
def forward(self, x: torch.Tensor, /, sequence_mask: torch.Tensor) -> torch.Tensor:
"""
:param x: input tensor of shape [B, T, F]
:param sequence_mask: mask tensor where 0 defines positions within the sequence and 1 outside, shape: [B, T]
:param sequence_mask: mask tensor where 1 defines positions within the sequence and 0 outside, shape: [B, T]
:return: torch.Tensor of shape [B, T, F]
"""
x = 0.5 * self.ff1(x) + x # [B, T, F]
Expand Down Expand Up @@ -98,7 +98,7 @@ def __init__(self, cfg: ConformerEncoderV1Config):
def forward(self, data_tensor: torch.Tensor, sequence_mask: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]:
"""
:param data_tensor: input tensor of shape [B, T', F]
:param sequence_mask: mask tensor where 0 defines positions within the sequence and 1 outside, shape: [B, T']
:param sequence_mask: mask tensor where 1 defines positions within the sequence and 0 outside, shape: [B, T']
:return: (output, out_seq_mask)
where output is torch.Tensor of shape [B, T, F'],
out_seq_mask is a torch.Tensor of shape [B, T]
Expand Down

0 comments on commit 3c91736

Please sign in to comment.