未验证 提交 4623dc4d 编写于 作者: C ceci3 提交者: GitHub

fix ofa export (#921)

上级 cb6ae979
......@@ -584,8 +584,7 @@ class OFA(OFABase):
t_value.set(pruned_state_dict[name], place)
if super_model_state_dict != None and len(super_model_state_dict) != 0:
for k, v in super_model_state_dict.items():
setattr(origin_model, k, v)
origin_model.set_state_dict(super_model_state_dict)
return origin_model
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册