提交 fec24e9f 编写于 作者: Y yaoxuefeng

bug fix

上级 f6e4be0d
...@@ -310,10 +310,6 @@ class SingleTrainer(TranspileTrainer): ...@@ -310,10 +310,6 @@ class SingleTrainer(TranspileTrainer):
context['is_exit'] = True context['is_exit'] = True
def load(self, is_fleet=False): def load(self, is_fleet=False):
def name_has_embedding(var):
res = "embedding_1.w_0" == var.name
return res
dirname = envs.get_global_env( dirname = envs.get_global_env(
"runner." + self._runner_name + ".init_model_path", None) "runner." + self._runner_name + ".init_model_path", None)
load_vars = envs.get_global_env( load_vars = envs.get_global_env(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册