Skip to content

Commit

Permalink
[Relay] Use target_host determined at Relay level instead of recalcul…
Browse files Browse the repository at this point in the history
…ating it (apache#9499)
  • Loading branch information
Mousius authored and ylc committed Jan 13, 2022
1 parent d7e4324 commit e645c93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/relay/backend/build_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ class RelayBuildModule : public runtime::ModuleNode {
ret_.mod = tvm::codegen::CSourceModuleCreate(";", "", Array<String>{});
}
} else {
ret_.mod = tvm::build(lowered_funcs, target_host_);
ret_.mod = tvm::build(lowered_funcs, target_host);
}

auto ext_mods = executor_codegen_->GetExternalModules();
Expand Down
2 changes: 1 addition & 1 deletion tests/python/driver/tvmc/test_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def test_compile_tflite_module_with_external_codegen_cmsisnn(
for name in mlf_package.getnames()
if re.match(r"\./codegen/host/src/\D+\d+\.c", name)
]
assert len(c_source_files) == 4
assert len(c_source_files) == 3


@pytest.mark.skipif(
Expand Down

0 comments on commit e645c93

Please sign in to comment.