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 2653eb5 commit b46c602Copy full SHA for b46c602
mlir/lib/Dialect/Quant/Transforms/StripFuncQuantTypes.cpp
@@ -65,14 +65,6 @@ class QuantizedTypeConverter : public TypeConverter {
65
class StripFuncQuantTypes
66
: public impl::StripFuncQuantTypesBase<StripFuncQuantTypes> {
67
68
- // Return whether a type is considered legal when occurring in the header of
69
- // a function or as an operand to a 'return' op.
70
- static bool isLegalType(Type type) {
71
- if (auto tensorType = dyn_cast<TensorType>(type))
72
- return isLegalType(tensorType.getElementType());
73
- return !isa<quant::QuantizedType>(type);
74
- }
75
-
76
public:
77
void runOnOperation() override {
78
0 commit comments