nnsvs.train_util.ensure_divisible_by

nnsvs.train_util.ensure_divisible_by(feats, N)[source]

Ensure that the number of frames is divisible by N.

Parameters:
  • feats (np.ndarray) – Input features.

  • N (int) – Target number of frames.

Returns:

Input features with number of frames divisible by N.

Return type:

np.ndarray