mirror of
https://github.com/wassname/TTS.git
synced 2026-10-29 12:51:00 +08:00
small bug fixes
This commit is contained in:
1 parent
7d5bcd6ca4
commit
dadefb5dbc
6 files changed
+51
-25
No files matched your search
@@ -15,6 +15,7 @@ def prepare_data(inputs):
|
||||
|
||||
|
||||
def pad_per_step(inputs, outputs_per_step):
|
||||
"""zero pad inputs if it is not divisible with outputs_per_step (r)"""
|
||||
timesteps = inputs.shape[-1]
|
||||
return np.pad(inputs, [[0, 0], [0, 0],
|
||||
[0, outputs_per_step - (timesteps % outputs_per_step)]],
|
||||
|
||||
Reference in new issue
Block a user