From 086f3cea723ac491c06f0630baf0809fa4afcc5e Mon Sep 17 00:00:00 2001 From: hanhxiao Date: Fri, 19 Jul 2019 16:55:27 +0800 Subject: [PATCH] fix(base): fix ump instance --- gnes/base/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnes/base/__init__.py b/gnes/base/__init__.py index 1dee9f81..9c10364b 100644 --- a/gnes/base/__init__.py +++ b/gnes/base/__init__.py @@ -332,7 +332,7 @@ def _convert_env_var(v): def _dump_instance_to_yaml(data): # note: we only dump non-default property for the sake of clarity p = {k: getattr(data, k) for k, v in TrainableType.default_gnes_config.items() if getattr(data, k) != v} - a = {k: v for k, v in data._init_kwargs_dict.items()} + a = {k: v for k, v in data._init_kwargs_dict.items() if k not in TrainableType.default_gnes_config} r = {} if a: r['parameter'] = a