mirror of
https://github.com/wassname/TTS.git
synced 2026-09-09 11:16:00 +08:00
Update docstrings
This commit is contained in:
@@ -21,8 +21,10 @@ def convert_pad_shape(pad_shape):
|
||||
|
||||
def generate_path(duration, mask):
|
||||
"""
|
||||
duration: [b, t_x]
|
||||
mask: [b, t_x, t_y]
|
||||
Shapes:
|
||||
- duration: :math:`[B, T_en]`
|
||||
- mask: :math:'[B, T_en, T_de]`
|
||||
- path: :math:`[B, T_en, T_de]`
|
||||
"""
|
||||
device = duration.device
|
||||
b, t_x, t_y = mask.shape
|
||||
|
||||
@@ -69,9 +69,9 @@ class MSELossMasked(nn.Module):
|
||||
length: A Variable containing a LongTensor of size (batch,)
|
||||
which contains the length of each data in a batch.
|
||||
Shapes:
|
||||
x: B x T X D
|
||||
target: B x T x D
|
||||
length: B
|
||||
- x: :math:`[B, T, D]`
|
||||
- target: :math:`[B, T, D]`
|
||||
- length: :math:`B`
|
||||
Returns:
|
||||
loss: An average loss value in range [0, 1] masked by the length.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user