Commit 60d42a97 by Jammy Zhou Committed by Tianqi Chen

Fix a typo for function registration (#927)

parent d99bcaf1
......@@ -212,7 +212,7 @@ def generic_func(fdefault):
dispatch_dict[k] = myf
return myf
if func:
return _do_reg(myf)
return _do_reg(func)
return _do_reg
def dispatch_func(func, *args, **kwargs):
......
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