mirror of
https://github.com/wassname/TTS.git
synced 2026-09-09 11:16:00 +08:00
use 0 padding for stop tokens, which seems not working after padding_idx
This commit is contained in:
+1
-1
@@ -14,7 +14,7 @@ def prepare_data(inputs):
|
||||
|
||||
|
||||
def _pad_tensor(x, length):
|
||||
_pad = 0
|
||||
_pad = 0.
|
||||
assert x.ndim == 2
|
||||
x = np.pad(
|
||||
x, [[0, 0], [0, length - x.shape[1]]],
|
||||
|
||||
Reference in New Issue
Block a user