Skip to content

Commit

Permalink
Fix optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
tqchen committed Feb 12, 2020
1 parent 176ffe5 commit aaf62e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/relay/build_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aaf62e4

Please sign in to comment.