Skip to content

Commit

Permalink
[Fix] Windows Build
Browse files Browse the repository at this point in the history
  • Loading branch information
junrushao committed Oct 31, 2023
1 parent 8535ea9 commit 3183686
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/runtime/relax_vm/builtin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/runtime/relax_vm/executable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3183686

Please sign in to comment.