Skip to content

Commit

Permalink
[Compatiblity] backward compatible to mxnet json (apache#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
tqchen committed May 26, 2018
1 parent 7660fd1 commit e6e715d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nnvm/src/pass/saveload_json.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e6e715d

Please sign in to comment.