Skip to content

Commit

Permalink
[Relay] Improve build error when no lowered funcs are produced (apach…
Browse files Browse the repository at this point in the history
…e#4132)

* Improve build error when no lowered funcs

* Switch from fatal to warning
  • Loading branch information
weberlo authored and wweic committed Oct 18, 2019
1 parent c382ea8 commit 2bfd887
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/relay/backend/build_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,9 @@ class RelayBuildModule : public runtime::ModuleNode {
ret_.params = graph_codegen_->GetParams();

auto lowered_funcs = graph_codegen_->GetLoweredFunc();
if (lowered_funcs.size() != 0) {
if (lowered_funcs.size() == 0) {
LOG(WARNING) << "no lowered funcs exist in the compiled module";
} else {
ret_.mod = tvm::build(
lowered_funcs,
target_host_,
Expand Down

0 comments on commit 2bfd887

Please sign in to comment.