diff --git a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.train_uda.py.swp b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.train_uda.py.swp index 6f65548e2..c52e5627f 100644 Binary files a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.train_uda.py.swp and b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.train_uda.py.swp differ diff --git a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/train_uda.py b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/train_uda.py index a729090f9..c25ab54aa 100755 --- a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/train_uda.py +++ b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/train_uda.py @@ -1016,9 +1016,12 @@ def train_one_epoch( if params.multi_optim: optimizer_enc, optimizer_dec = optimizer[0], optimizer[1] scheduler_enc, scheduler_dec = scheduler[0], scheduler[1] - + + if type(train_dl) == list: + train_dl_uda = train_dl[1] + train_dl = train_dl[0] #for batch_idx, batch in enumerate(train_dl): - for batch_idx, batch in enumerate(zip(train_dl, train_dl_uda)) + for batch_idx, batch in enumerate(zip(train_dl, train_dl_uda)): if batch_idx < cur_batch_idx: continue cur_batch_idx = batch_idx