mirror of https://github.com/coqui-ai/TTS.git
Update docstrings
This commit is contained in:
parent
57b3aec1b9
commit
b81560607b
|
@ -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.
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue