From c6e621096406d862f0d738ecd02f6fa88adb44fd Mon Sep 17 00:00:00 2001 From: lym0302 Date: Mon, 25 Apr 2022 11:00:17 +0800 Subject: [PATCH] code format, test=tts --- paddlespeech/t2s/modules/predictor/length_regulator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/paddlespeech/t2s/modules/predictor/length_regulator.py b/paddlespeech/t2s/modules/predictor/length_regulator.py index 11f28408..e4fbf549 100644 --- a/paddlespeech/t2s/modules/predictor/length_regulator.py +++ b/paddlespeech/t2s/modules/predictor/length_regulator.py @@ -49,9 +49,9 @@ class LengthRegulator(nn.Layer): encodings: (B, T, C) durations: (B, T) """ - #batch_size, t_enc = durations.shape - batch_size = paddle.shape(durations)[0] - t_enc = paddle.shape(durations)[1] + #batch_size, t_enc = durations.shape # linux + batch_size = paddle.shape(durations)[0] # windows and mac + t_enc = paddle.shape(durations)[1] # windows and mac durations = durations.numpy() slens = np.sum(durations, -1) t_dec = np.max(slens)