提交 3befcd79 编写于 作者: T tangwei

fix windows adapter

上级 53b6f16a
...@@ -37,7 +37,7 @@ class ModelBase(object): ...@@ -37,7 +37,7 @@ class ModelBase(object):
self._fetch_interval = 20 self._fetch_interval = 20
self._platform = envs.get_platform() self._platform = envs.get_platform()
self._init_hyper_parameters() self._init_hyper_parameters()
context["env"] = config self._env = config
self._slot_inited = False self._slot_inited = False
def _init_hyper_parameters(self): def _init_hyper_parameters(self):
...@@ -49,11 +49,11 @@ class ModelBase(object): ...@@ -49,11 +49,11 @@ class ModelBase(object):
self._slot_inited = True self._slot_inited = True
dataset = {} dataset = {}
model_dict = {} model_dict = {}
for i in context["env"]("phase"): for i in self._env["phase"]:
if i["name"] == kargs["name"]: if i["name"] == kargs["name"]:
model_dict = i model_dict = i
break break
for i in context["env"]("dataset"): for i in self._env["dataset"]:
if i["name"] == model_dict["dataset_name"]: if i["name"] == model_dict["dataset_name"]:
dataset = i dataset = i
break break
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册