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
baf9af7049
commit
b9ef1eb801
Binary file not shown.
@ -974,6 +974,10 @@ def run(rank, world_size, args):
|
|||||||
pre_trained2 = torch.load(path2)
|
pre_trained2 = torch.load(path2)
|
||||||
pre_trained_model2 = pre_trained2["model"]
|
pre_trained_model2 = pre_trained2["model"]
|
||||||
|
|
||||||
|
for n, p in pre_trained_model2.items():
|
||||||
|
if rank == 0:
|
||||||
|
print(n)
|
||||||
|
|
||||||
for n, p in model.named_parameters():
|
for n, p in model.named_parameters():
|
||||||
if 'layer' not in n:
|
if 'layer' not in n:
|
||||||
try: p.data = pre_trained_model1[n]
|
try: p.data = pre_trained_model1[n]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user