Skip to content

Commit 7cbfb60

Browse files
zhresholdtqchen
authored andcommitted
fix segfault when op is unset (#15)
1 parent 3e428a8 commit 7cbfb60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nnvm/src/core/symbolic.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ bool Symbol::GetAttr(const std::string& key, std::string* out) const {
491491
if (node->attrs.op != nullptr) {
492492
*out = node->attrs.op->name;
493493
} else {
494-
*out = "null"; // use null in consistant with json
494+
*out = "null"; // use null with json
495495
}
496496
return true;
497497
}

0 commit comments

Comments
 (0)