Update docstrings

This commit is contained in:
Eren Gölge 2021-07-22 14:20:43 +02:00
parent 57b3aec1b9
commit b81560607b
2 changed files with 7 additions and 5 deletions

View File

@ -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

View File

@ -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.
"""