Skip to content

Commit d3a0ec8

Browse files
committed
add a little bit more to the errmsg
1 parent 85002cc commit d3a0ec8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Dialect/Torch/Utils/Utils.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ torch_upstream::ScalarType Torch::getScalarTypeForType(Type type) {
102102
os << "\n Bit width: "
103103
<< (type.isIntOrFloat() ? std::to_string(type.getIntOrFloatBitWidth())
104104
: "N/A");
105+
os << "\n Is signless: " << (type.isSignlessInteger() ? "yes" : "no");
106+
os << "\n Is signed: " << (type.isSignedInteger() ? "yes" : "no");
105107
llvm::report_fatal_error(llvm::StringRef(errorMsg));
106108
}
107109
Type Torch::getTypeForTorchType(

0 commit comments

Comments
 (0)