You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warnings.warn(("Skip loading for {}. ".format(key) +str(err)))
1658
-
1667
+
forkeyinstate_dict.keys():
1668
+
ifkeynotinmatch_keys:
1669
+
unexpected_keys.append(key)
1659
1670
if_non_static_mode():
1660
1671
forparam, stateinmatched_param_state:
1661
1672
param.set_value(state)
@@ -1693,6 +1704,8 @@ def _set_var(var, ndarray):
1693
1704
"This error might happens in dy2static, while calling 'set_state_dict' dynamicly in 'forward', which is not supported. If you only need call 'set_state_dict' once, move it to '__init__'."
0 commit comments