from local

This commit is contained in:
dohe0342 2023-01-08 18:08:31 +09:00
parent fc64f1f842
commit af05ed06e0
2 changed files with 2 additions and 0 deletions

View File

@ -966,6 +966,7 @@ def run(rank, world_size, args):
logging.info("About to create model")
model = get_transducer_model(params)
'''
pre_trained_model = torch.load('/home/work/workspace/icefall/egs/librispeech/ASR/pruned_transducer_stateless5/exp-B/epoch-30.pt')
pre_trained_model = pre_trained_model['model']
@ -984,6 +985,7 @@ def run(rank, world_size, args):
print(f'skipping param load {n}')
exit()
'''
num_param = sum([p.numel() for p in model.parameters()])
logging.info(f"Number of model parameters: {num_param}")