diff --git a/src/relay/vm/vm.cc b/src/relay/vm/vm.cc index f2fad4856b47b..7b7913ea534ff 100644 --- a/src/relay/vm/vm.cc +++ b/src/relay/vm/vm.cc @@ -456,12 +456,13 @@ typename std::enable_if::type VirtualMachine::DumpStack() { } case VMObjectTag::kDatatype: { VMDatatypeCell* datatype = (VMDatatypeCell*)stack[i].operator->(); - std::cout << "fields: " << datatype->fields.size(); - std::cout << "\n"; + RELAY_LOG(INFO) << "fields: " << datatype->fields.size(); + RELAY_LOG(INFO) << "\n"; break; } default: { RELAY_LOG(INFO) << "\n"; + break; } } }