Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#3353 (frontend API change) breaks Graph tuning in AutoTVM #3432

Closed
loiccordone opened this issue Jun 25, 2019 · 2 comments
Closed

#3353 (frontend API change) breaks Graph tuning in AutoTVM #3432

loiccordone opened this issue Jun 25, 2019 · 2 comments

Comments

@loiccordone
Copy link

loiccordone commented Jun 25, 2019

Hello,
At the tuner definition (see #2184), #3353 now causes:

File "/home/renault/tvm/python/tvm/autotvm/graph_tuner/base_graph_tuner.py", line 149, in __init__
    raise RuntimeError("Unsupported graph type: %s" % str(type(graph)))
RuntimeError: Unsupported graph type: <class 'tvm.relay.module.Module'>

graph = graph[graph.entry_func] solves the problem but it's not clean, and I don't sufficiently understand the BaseGraphTuner module to make it clean and submit a PR.

Can you look into it please? Thanks
@kevinthesun @zhiics

@zhiics
Copy link
Member

zhiics commented Jun 25, 2019

I think we can just add a checker before

https://github.com/dmlc/tvm/blob/master/python/tvm/autotvm/graph_tuner/base_graph_tuner.py#L143

if isinstance(graph, relay.Module)
    graph = graph[mod.entry_func]

@kevinthesun
Copy link
Contributor

#3434

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants