mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
5b603cecda
commit
e6c8e3b107
Binary file not shown.
@ -1130,13 +1130,17 @@ def run(rank, world_size, args, wb=None):
|
||||
|
||||
if params.multi_optim:
|
||||
logging.info("Using seperate optimizers over encoder, decoder ...")
|
||||
|
||||
enc_param = []
|
||||
enc_names = []
|
||||
|
||||
dec_names = []
|
||||
dec_param = []
|
||||
|
||||
for n, p in model.named_parameters():
|
||||
name = n.split('.')[1]
|
||||
if name == 'encoder' and 'feature_extractor' not in n:
|
||||
enc_names.append(n)
|
||||
enc_param.append(p)
|
||||
elif 'feature_extractor' not in n:
|
||||
dec_names.append(n)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user