Demo
Chapters
Core modules
Helpers
Advanced topics
Meta information
ttslearn.util.
pad_1d
Pad a 1d-tensor.
x (torch.Tensor) – tensor to pad
max_len (int) – maximum length of the tensor
constant_values (int, optional) – value to pad with. Default: 0
padded tensor
torch.Tensor