Skip to content

Commit 5202bac

Browse files
committed
clean up
Signed-off-by: Tung D. Le <[email protected]>
1 parent 57cb090 commit 5202bac

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

src/Dialect/ONNX/ONNXOps/OpHelper.cpp

-7
Original file line numberDiff line numberDiff line change
@@ -579,13 +579,6 @@ RESULT_TYPE getScalarValue(ONNXConstantOp constantOp) {
579579
template double getScalarValue<double>(ONNXConstantOp constantOp);
580580
template int64_t getScalarValue<int64_t>(ONNXConstantOp constantOp);
581581

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-
589582
/// Return the wide type of a value.
590583
WideNum asWideNum(double n, Type elemType) {
591584
return wideZeroDispatch(elemType, [n](auto wideZero) {

src/Dialect/ONNX/ONNXOps/OpHelper.hpp

-3
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,6 @@ RESULT_TYPE getScalarValue(mlir::ONNXConstantOp constantOp);
247247
/// Return the wide type of a value.
248248
WideNum asWideNum(double n, mlir::Type elemType);
249249

250-
/// Checks whether a constant tensor's elements are of type FloatType.
251-
bool isFloatType(mlir::Value constValue);
252-
253250
/// Checks whether a constant tensor's elements are all equal to a given scalar.
254251
bool isConstOf(mlir::Value constValue, double n);
255252

0 commit comments

Comments
 (0)