Commit aaf62e47 by tqchen Committed by Tianqi Chen

Fix optimize

parent 176ffe50
......@@ -275,7 +275,7 @@ def optimize(mod, target=None, params=None):
params : dict
The parameters of the final graph.
"""
if isinstance(mod, _Module):
if isinstance(mod, IRModule):
func = mod["main"]
elif isinstance(mod, _expr.Function):
func = mod
......
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