We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3ccdd1 commit d1993abCopy full SHA for d1993ab
mlir/lib/Dialect/Quant/IR/QuantTypes.cpp
@@ -299,7 +299,7 @@ LogicalResult UniformQuantizedType::verify(
299
return emitError() << "expressed type must be floating point";
300
301
// Verify scale.
302
- if (scale <= 0.0 || std::isinf(scale) || std::isnan(scale))
+ if (std::isinf(scale) || std::isnan(scale))
303
return emitError() << "illegal scale: " << scale;
304
305
return success();
@@ -364,7 +364,7 @@ LogicalResult UniformQuantizedPerAxisType::verify(
364
365
366
for (double scale : scales) {
367
368
369
}
370
0 commit comments