Skip to content

Commit

Permalink
[Relay][VM]Fix debug statement (apache#3565)
Browse files Browse the repository at this point in the history
* [Relay][VM]Fix debug statement

* Change debug statement
  • Loading branch information
wweic committed Sep 6, 2019
1 parent c4370fe commit 3642c34
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/relay/backend/vm/compiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -739,11 +739,10 @@ class VMCompiler : public runtime::ModuleNode {
vm_->functions[func_index] = vm_func;
}

#ifdef USE_RELAY_DEBUG
for (auto vm_func : vm.functions) {
std::cout << "Function: " << vm_func.name << std::endl
<< vm_func << "-------------" << std::endl;
}
#if USE_RELAY_DEBUG
for (auto vm_func : vm_->functions) {
DLOG(INFO) << vm_func << "-------------";
}
#endif // USE_RELAY_DEBUG

PopulatePackedFuncMap();
Expand Down

0 comments on commit 3642c34

Please sign in to comment.