Commit bf8bd967 by Tianqi Chen

[Compatiblity] backward compatible to mxnet json (#49)

parent 154cb98c
...@@ -103,8 +103,8 @@ struct JSONNode { ...@@ -103,8 +103,8 @@ struct JSONNode {
std::unordered_map<std::string, std::string> param; std::unordered_map<std::string, std::string> param;
helper.DeclareOptionalField("param", &param); helper.DeclareOptionalField("param", &param);
helper.DeclareOptionalField("backward_source_id", &backward_source_id); helper.DeclareOptionalField("backward_source_id", &backward_source_id);
node->attrs.dict.insert(param.begin(), param.end());
helper.ReadAllFields(reader); helper.ReadAllFields(reader);
node->attrs.dict.insert(param.begin(), param.end());
if (op_type_str != "null") { if (op_type_str != "null") {
try { try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment