diff --git a/src/relay/backend/vm/compiler.cc b/src/relay/backend/vm/compiler.cc index 2b53d97baf8d..11a3d0403067 100644 --- a/src/relay/backend/vm/compiler.cc +++ b/src/relay/backend/vm/compiler.cc @@ -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();