Small fix

This commit is contained in:
yfyeung 2024-07-11 13:51:12 +08:00
parent 785f3f0bcf
commit 9dc87d47d9
2 changed files with 6 additions and 5 deletions

View File

@ -636,8 +636,9 @@ class ChunkCausalDepthwiseConv1d(torch.nn.Module):
)
def forward(self, x: Tensor, chunk_size: int = -1) -> Tensor:
"""
Forward function. Args:
"""Forward function.
Args:
x: a Tensor of shape (batch_size, channels, seq_len)
chunk_size: the chunk size, in frames; does not have to divide seq_len exactly.
"""

View File

@ -406,7 +406,7 @@ def get_parser():
"--context-size",
type=int,
default=2,
help="The context size in the decoder. 1 means bigram; " "2 means tri-gram",
help="The context size in the decoder. 1 means bigram; 2 means tri-gram",
)
parser.add_argument(
@ -429,7 +429,7 @@ def get_parser():
"--am-scale",
type=float,
default=0.0,
help="The scale to smooth the loss with am (output of encoder network)" "part.",
help="The scale to smooth the loss with am (output of encoder network) part.",
)
parser.add_argument(