Skip to content
Permalink
Browse files

fix(base): fix ump instance

  • Loading branch information...
hanxiao committed Jul 19, 2019
1 parent 12dfde4 commit 086f3cea723ac491c06f0630baf0809fa4afcc5e
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 086f3ce

Please sign in to comment.
You can’t perform that action at this time.