From ac1240c07f057bd36fa66844dfeb196921fea713 Mon Sep 17 00:00:00 2001 From: Tianqi Chen Date: Thu, 1 Sep 2016 19:34:31 -0700 Subject: [PATCH] Update symbolic.cc --- nnvm/src/core/symbolic.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nnvm/src/core/symbolic.cc b/nnvm/src/core/symbolic.cc index d3a601d41424..ba6633043518 100644 --- a/nnvm/src/core/symbolic.cc +++ b/nnvm/src/core/symbolic.cc @@ -346,7 +346,7 @@ void Symbol::Compose(const array_view& 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 update_nodes; std::vector > replace_plan; auto find_replace_plan = [&replace_map, &replace_plan, &update_nodes]