Skip to content

Commit e6e715d

Browse files
committed
[Compatiblity] backward compatible to mxnet json (apache#49)
1 parent 7660fd1 commit e6e715d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nnvm/src/pass/saveload_json.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ struct JSONNode {
103103
std::unordered_map<std::string, std::string> param;
104104
helper.DeclareOptionalField("param", &param);
105105
helper.DeclareOptionalField("backward_source_id", &backward_source_id);
106-
node->attrs.dict.insert(param.begin(), param.end());
107106
helper.ReadAllFields(reader);
107+
node->attrs.dict.insert(param.begin(), param.end());
108108

109109
if (op_type_str != "null") {
110110
try {

0 commit comments

Comments
 (0)