From d3a0ec82e89ce0194d257898645c0da813cabcae Mon Sep 17 00:00:00 2001 From: Xida Ren Date: Wed, 25 Sep 2024 16:19:26 +0000 Subject: [PATCH] add a little bit more to the errmsg --- lib/Dialect/Torch/Utils/Utils.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Dialect/Torch/Utils/Utils.cpp b/lib/Dialect/Torch/Utils/Utils.cpp index d7b11a505f84..c87481e8e997 100644 --- a/lib/Dialect/Torch/Utils/Utils.cpp +++ b/lib/Dialect/Torch/Utils/Utils.cpp @@ -102,6 +102,8 @@ torch_upstream::ScalarType Torch::getScalarTypeForType(Type type) { os << "\n Bit width: " << (type.isIntOrFloat() ? std::to_string(type.getIntOrFloatBitWidth()) : "N/A"); + os << "\n Is signless: " << (type.isSignlessInteger() ? "yes" : "no"); + os << "\n Is signed: " << (type.isSignedInteger() ? "yes" : "no"); llvm::report_fatal_error(llvm::StringRef(errorMsg)); } Type Torch::getTypeForTorchType(