Commit bf8bd967 by Tianqi Chen

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

parent 154cb98c
......@@ -103,8 +103,8 @@ struct JSONNode {
std::unordered_map<std::string, std::string> param;
helper.DeclareOptionalField("param", &param);
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 {
......
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