提交 c6e62109 编写于 作者: L lym0302

code format, test=tts

上级 88adcaa6
...@@ -49,9 +49,9 @@ class LengthRegulator(nn.Layer): ...@@ -49,9 +49,9 @@ class LengthRegulator(nn.Layer):
encodings: (B, T, C) encodings: (B, T, C)
durations: (B, T) durations: (B, T)
""" """
#batch_size, t_enc = durations.shape #batch_size, t_enc = durations.shape # linux
batch_size = paddle.shape(durations)[0] batch_size = paddle.shape(durations)[0] # windows and mac
t_enc = paddle.shape(durations)[1] t_enc = paddle.shape(durations)[1] # windows and mac
durations = durations.numpy() durations = durations.numpy()
slens = np.sum(durations, -1) slens = np.sum(durations, -1)
t_dec = np.max(slens) t_dec = np.max(slens)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册