AttributeError: module 'tvm.contrib.graph_runtime' has no attribute 'GraphModule

There was an API change. Try the following:

Change:

from tvm.contrib import graph_runtime

to:

import tvm.contrib.graph_executor as runtime

Also change graph_runtime to runtime.

Hope it works for you.

2 Likes