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

fix windows adapter

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