Skip to content

Commit

Permalink
revert to tvm.runtime.Module
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrdadh committed Jun 16, 2022
1 parent a7560f1 commit 06c9b51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/tvm/micro/model_library_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def generate_c_interface_header(
def _populate_codegen_dir(
mods: typing.Union[
typing.List[executor_factory.ExecutorFactoryModule],
typing.List[build_module.OperatorModule],
typing.List[tvm.runtime.Module],
],
codegen_dir: str,
):
Expand All @@ -92,7 +92,7 @@ def _populate_codegen_dir(
for mod in mods:
if isinstance(mod, executor_factory.ExecutorFactoryModule):
lib = mod.lib
elif isinstance(mod, build_module.OperatorModule):
elif isinstance(mod, tvm.runtime.Module):
lib = mod
else:
raise RuntimeError(f"Not supported module type: {type(mod)}")
Expand Down

0 comments on commit 06c9b51

Please sign in to comment.