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:
|
if params.multi_optim:
|
||||||
logging.info("Using seperate optimizers over encoder, decoder ...")
|
logging.info("Using seperate optimizers over encoder, decoder ...")
|
||||||
|
|
||||||
enc_param = []
|
enc_param = []
|
||||||
|
enc_names = []
|
||||||
|
|
||||||
dec_names = []
|
dec_names = []
|
||||||
dec_param = []
|
dec_param = []
|
||||||
|
|
||||||
for n, p in model.named_parameters():
|
for n, p in model.named_parameters():
|
||||||
name = n.split('.')[1]
|
name = n.split('.')[1]
|
||||||
if name == 'encoder' and 'feature_extractor' not in n:
|
if name == 'encoder' and 'feature_extractor' not in n:
|
||||||
|
enc_names.append(n)
|
||||||
enc_param.append(p)
|
enc_param.append(p)
|
||||||
elif 'feature_extractor' not in n:
|
elif 'feature_extractor' not in n:
|
||||||
dec_names.append(n)
|
dec_names.append(n)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user