from local

This commit is contained in:
dohe0342 2022-12-10 13:50:57 +09:00
parent 5b603cecda
commit e6c8e3b107
2 changed files with 4 additions and 0 deletions

View File

@ -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)