Skip to content

Commit

Permalink
Use main variable instead of entry_func
Browse files Browse the repository at this point in the history
  • Loading branch information
slyubomirsky committed Jul 7, 2019
1 parent ee4d514 commit 3be301d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/relay/testing/py_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def optimize(self, prog: Expr):
opts = relay.transform.Sequential([relay.transform.SimplifyInference(),
relay.transform.FuseOps(fuse_opt_level=0)])
mod = opts(mod)
optimized = mod[mod.entry_func]
optimized = mod['main']
return optimized if isinstance(unwrapped, Function) else optimized.body


Expand Down

0 comments on commit 3be301d

Please sign in to comment.