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 authored and sergei-mironov committed Aug 8, 2018
1 parent 1c97827 commit 73e49e9
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 73e49e9

Please sign in to comment.