Commit 241c7ac7 by Tianqi Chen

Update symbolic.cc

parent b3e0b540
......@@ -346,7 +346,7 @@ void Symbol::Compose(const array_view<const Symbol*>& args,
};
DFSVisit(this->outputs, find_replace_map);
if (nmatched == kwargs.size() && arg_counter < args.size()) {
if (nmatched == kwargs.size() && arg_counter <= args.size()) {
std::vector<Node*> update_nodes;
std::vector<std::pair<NodeEntry*, const NodeEntry*> > replace_plan;
auto find_replace_plan = [&replace_map, &replace_plan, &update_nodes]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment