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
fc64f1f842
commit
af05ed06e0
Binary file not shown.
@ -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}")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user