Functionexpand_by_repeat_times source_encoding: [T, C] lengths, list of int, [T,], how many times each token should repeat return: expanded_encoding: [T_expand,
video_generation/MegaTTS3/tts/modules/ar_dur/commons/seq_utils.py:321
Methodforward x : torch.LongTensor, shape = (batch_size, <= n_ctx) the text tokens xa : torch.Tensor, shape = (batch_size, n_audio_ctx,
video_generation/MegaTTS3/tts/modules/aligner/whisper_small.py:220
Methodforward(self, txt_tokens, ling_feas, char_tokens, ph2char, bert_embed,
prev_code, spk_id=None, spk_em
video_generation/MegaTTS3/tts/modules/ar_dur/ar_dur_predictor.py:190
Methodforward Example (no batch dim version): 1. dur = [2,2,3] 2. token_idx = [[1],[2],[3]], dur_cumsum = [2,4,7], dur_cumsum_prev
video_generation/MegaTTS3/tts/modules/ar_dur/commons/nar_tts_modules.py:28