add bool scalar type to int implicit cast (#2571)

[LTC] Add bool scalar type to int implicit cast
pull/2577/head
Shehroze Khan 2023-11-14 08:56:12 -05:00 committed by GitHub
parent c61f0bd5bb
commit dde66e66b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {