From 3befcd7982bfbf2528ee7b9994d6ef62b4f5da0c Mon Sep 17 00:00:00 2001 From: tangwei Date: Thu, 11 Jun 2020 11:16:25 +0800 Subject: [PATCH] fix windows adapter --- core/model.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/model.py b/core/model.py index 75324d40..e39573c2 100755 --- a/core/model.py +++ b/core/model.py @@ -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 -- GitLab