#include "mlir/Dialect/Quant/Utils/UniformSupport.h"
#include "mlir/IR/BuiltinTypes.h"
#include <numeric>
usingnamespacemlir;
usingnamespacemlir::quant;
static bool isQuantizablePrimitiveType(Type inputType) { … }
ExpressedToQuantizedConverter
ExpressedToQuantizedConverter::forInputType(Type inputType) { … }
Type ExpressedToQuantizedConverter::convert(QuantizedType elementalType) const { … }
ElementsAttr
UniformQuantizedPerAxisValueConverter::convert(Attribute realValue) { … }
DenseElementsAttr
UniformQuantizedPerAxisValueConverter::convert(DenseFPElementsAttr attr) { … }