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
2e0a8b7dab
commit
7ba1052392
Binary file not shown.
@ -974,8 +974,11 @@ def run(rank, world_size, args):
|
||||
try: p.data = pre_trained_model[n]
|
||||
except: print(f'pre-trained model has no parameterd named {n}.')
|
||||
else:
|
||||
|
||||
print(n[23:25])
|
||||
layer_name_splited = n.split('.')
|
||||
if int(layer_name_splited[3]) % 2 == 0:
|
||||
layer_name_splited[3] = str(int(layer_name_splited[3])//2)
|
||||
print(''.join(layer_name_splited))
|
||||
|
||||
exit()
|
||||
|
||||
num_param = sum([p.numel() for p in model.parameters()])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user