File tree 2 files changed +0
-10
lines changed
2 files changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -579,13 +579,6 @@ RESULT_TYPE getScalarValue(ONNXConstantOp constantOp) {
579
579
template double getScalarValue<double >(ONNXConstantOp constantOp);
580
580
template int64_t getScalarValue<int64_t >(ONNXConstantOp constantOp);
581
581
582
- // / Checks whether a constant tensor's elements are of type FloatType.
583
- bool isFloatType (Value constValue) {
584
- ElementsAttr constElements = getElementAttributeFromONNXValue (constValue);
585
- Type elemType = constElements.getElementType ();
586
- return mlir::isa<FloatType>(elemType);
587
- }
588
-
589
582
// / Return the wide type of a value.
590
583
WideNum asWideNum (double n, Type elemType) {
591
584
return wideZeroDispatch (elemType, [n](auto wideZero) {
Original file line number Diff line number Diff line change @@ -247,9 +247,6 @@ RESULT_TYPE getScalarValue(mlir::ONNXConstantOp constantOp);
247
247
// / Return the wide type of a value.
248
248
WideNum asWideNum (double n, mlir::Type elemType);
249
249
250
- // / Checks whether a constant tensor's elements are of type FloatType.
251
- bool isFloatType (mlir::Value constValue);
252
-
253
250
// / Checks whether a constant tensor's elements are all equal to a given scalar.
254
251
bool isConstOf (mlir::Value constValue, double n);
255
252
You can’t perform that action at this time.
0 commit comments