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):
|
def generate_path(duration, mask):
|
||||||
"""
|
"""
|
||||||
duration: [b, t_x]
|
Shapes:
|
||||||
mask: [b, t_x, t_y]
|
- duration: :math:`[B, T_en]`
|
||||||
|
- mask: :math:'[B, T_en, T_de]`
|
||||||
|
- path: :math:`[B, T_en, T_de]`
|
||||||
"""
|
"""
|
||||||
device = duration.device
|
device = duration.device
|
||||||
b, t_x, t_y = mask.shape
|
b, t_x, t_y = mask.shape
|
||||||
|
|
|
@ -69,9 +69,9 @@ class MSELossMasked(nn.Module):
|
||||||
length: A Variable containing a LongTensor of size (batch,)
|
length: A Variable containing a LongTensor of size (batch,)
|
||||||
which contains the length of each data in a batch.
|
which contains the length of each data in a batch.
|
||||||
Shapes:
|
Shapes:
|
||||||
x: B x T X D
|
- x: :math:`[B, T, D]`
|
||||||
target: B x T x D
|
- target: :math:`[B, T, D]`
|
||||||
length: B
|
- length: :math:`B`
|
||||||
Returns:
|
Returns:
|
||||||
loss: An average loss value in range [0, 1] masked by the length.
|
loss: An average loss value in range [0, 1] masked by the length.
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue