Skip to content

Commit

Permalink
fix (apache#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
piiswrong committed Dec 8, 2016
1 parent 963ff10 commit 1f1147a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/symbolic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,7 @@ void Symbol::SetAttrs(const std::vector<std::pair<std::string, std::string> >& a
bool Symbol::GetAttr(const std::string& key, std::string* out) const {
Node* node = outputs[0].node.get();
for (const NodeEntry& e : outputs) {
CHECK(node == e.node.get())
<< "Symbol.SetAttrs only works for non-grouped symbol";
if (node != e.node.get()) return false;
}
if (key == "name") {
*out = node->attrs.name;
Expand Down

0 comments on commit 1f1147a

Please sign in to comment.