Home
last modified time | relevance | path

Searched refs:inputQType (Results 1 – 3 of 3) sorted by relevance

/external/llvm-project/mlir/lib/Dialect/Tosa/Utils/
DQuantUtils.cpp111 auto inputQType = GET_UQTYPE(inputType); in buildConvOpQuantizationAttr() local
121 assert(!((bool)inputQType ^ in buildConvOpQuantizationAttr()
125 if (inputQType) { in buildConvOpQuantizationAttr()
127 int64_t inputZp = inputQType.getZeroPoint(); in buildConvOpQuantizationAttr()
196 auto inputQType = GET_UQTYPE(inputType); in buildUnaryOpQuantizationAttr() local
200 assert(!((bool)inputQType ^ (bool)outputQType) && in buildUnaryOpQuantizationAttr()
203 if (inputQType) { in buildUnaryOpQuantizationAttr()
205 int64_t inputZp = inputQType.getZeroPoint(); in buildUnaryOpQuantizationAttr()
228 auto inputQType = GET_UQTYPE(inputType); in buildPadOpQuantizationAttr() local
230 if (inputQType) { in buildPadOpQuantizationAttr()
[all …]
/external/llvm-project/mlir/lib/Dialect/Tosa/IR/
DTosaOps.cpp124 auto inputQType = in verifyConvOp() local
130 if (inputQType != weightQType) in verifyConvOp()
135 if ((inputQType && !op.quantization_info()) || in verifyConvOp()
136 (!inputQType && op.quantization_info())) in verifyConvOp()
224 auto inputQType = inputType.getElementType() in buildMatMulOpWithQuantInfo() local
226 assert(inputQType && "Tensor must have quantized datatype!"); in buildMatMulOpWithQuantInfo()
228 unsigned inputBits = inputQType.getStorageTypeIntegralWidth(); in buildMatMulOpWithQuantInfo()
/external/llvm-project/mlir/test/lib/Dialect/Tosa/
DTosaTestPasses.cpp134 auto inputQType = in matchAndRewrite() local
142 if (!(inputQType && weightQType && outputQType)) in matchAndRewrite()
154 double inputScale = inputQType.getScale(); in matchAndRewrite()