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 Aug 9, 2019
1 parent dd81d1e commit cdc9990
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 cdc9990

Please sign in to comment.