mirror of
https://github.com/wassname/TTS.git
synced 2026-09-09 11:16:00 +08:00
small bug fixes
This commit is contained in:
@@ -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