Skip to content

Commit

Permalink
fix segfault when op is unset (apache#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhreshold authored and tqchen committed May 29, 2018
1 parent 7c95535 commit 48038a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nnvm/src/core/symbolic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ bool Symbol::GetAttr(const std::string& key, std::string* out) const {
if (node->attrs.op != nullptr) {
*out = node->attrs.op->name;
} else {
*out = "null"; // use null in consistant with json
*out = "null"; // use null with json
}
return true;
}
Expand Down

0 comments on commit 48038a9

Please sign in to comment.