Skip to content

Commit

Permalink
fix (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
piiswrong committed Jul 30, 2017
1 parent 9321635 commit 0a45136
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/symbolic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -281,13 +281,13 @@ void Symbol::Compose(const array_view<const Symbol*>& args,
CHECK_EQ(kv.second->outputs.size(), 1U)
<< "Keyword Argument " << kv.first << " is a tuple, single value is required";
}
// assign new name
if (!name.empty()) outputs[0].node->attrs.name = name;

// Atomic functor composition.
if (IsAtomic(outputs)) {
Node* n = outputs[0].node.get();
uint32_t n_req = n->num_inputs();
// assign new name
if (!name.empty()) n->attrs.name = name;

if (n_req != kVarg) {
n->inputs.resize(n_req);
Expand Down

0 comments on commit 0a45136

Please sign in to comment.