From b431fecdb649751bbc5bb4264708f8010afb3881 Mon Sep 17 00:00:00 2001 From: Tianqi Chen Date: Wed, 21 Sep 2016 10:06:34 -0700 Subject: [PATCH] [Compatiblity] backward compatible to mxnet json (#49) --- src/pass/saveload_json.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pass/saveload_json.cc b/src/pass/saveload_json.cc index 3b3f8561a33f..2200a4b6b21f 100644 --- a/src/pass/saveload_json.cc +++ b/src/pass/saveload_json.cc @@ -103,8 +103,8 @@ struct JSONNode { std::unordered_map param; helper.DeclareOptionalField("param", ¶m); helper.DeclareOptionalField("backward_source_id", &backward_source_id); - node->attrs.dict.insert(param.begin(), param.end()); helper.ReadAllFields(reader); + node->attrs.dict.insert(param.begin(), param.end()); if (op_type_str != "null") { try {