mirror of https://github.com/llvm/torch-mlir
add bool scalar type to int implicit cast (#2571)
[LTC] Add bool scalar type to int implicit castpull/2577/head
parent
c61f0bd5bb
commit
dde66e66b0
|
@ -20,7 +20,7 @@ void ConvertScalarImplicit(std::shared_ptr<Graph>& graph) {
|
|||
|
||||
NodeKind node_type;
|
||||
TypePtr output_type;
|
||||
if (c10::isIntegralType(*scalar_type, false)) {
|
||||
if (c10::isIntegralType(*scalar_type, true)) {
|
||||
node_type = c10::aten::IntImplicit;
|
||||
output_type = IntType::get();
|
||||
} else if (c10::isFloatingType(*scalar_type)) {
|
||||
|
|
Loading…
Reference in New Issue