From 3183686672bf08316e404dfe915978653709809a Mon Sep 17 00:00:00 2001 From: Junru Shao Date: Tue, 31 Oct 2023 12:42:40 -0700 Subject: [PATCH] [Fix] Windows Build --- src/runtime/relax_vm/builtin.cc | 2 +- src/runtime/relax_vm/executable.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/relax_vm/builtin.cc b/src/runtime/relax_vm/builtin.cc index a764c34cfa..63cb58abac 100644 --- a/src/runtime/relax_vm/builtin.cc +++ b/src/runtime/relax_vm/builtin.cc @@ -246,7 +246,7 @@ void CheckTensorInfo(TVMArgs args, TVMRetValue* rv) { if (dtype != DataType::Void()) { CHECK(DataType(ptr->dl_tensor.dtype) == dtype) << "ValueError: " << err_ctx.value_or("") << " expect Tensor with dtype " << dtype - << " but get " << ptr->dl_tensor.dtype; + << " but get " << DataType(ptr->dl_tensor.dtype); } } diff --git a/src/runtime/relax_vm/executable.cc b/src/runtime/relax_vm/executable.cc index f472a2974e..98be501ec2 100644 --- a/src/runtime/relax_vm/executable.cc +++ b/src/runtime/relax_vm/executable.cc @@ -124,7 +124,7 @@ std::string Executable::Stats() const { oss << ", "; } else { try { - DLDataType dtype = it.operator DLDataType(); + DataType dtype(it.operator DLDataType()); oss << dtype; oss << ", "; } catch (std::exception& exc) {