/external/llvm-project/mlir/lib/Dialect/Quant/IR/ |
D | TypeDetail.h | 24 QuantizedTypeStorage(unsigned flags, Type storageType, Type expressedType, in QuantizedTypeStorage() 26 : flags(flags), storageType(storageType), expressedType(expressedType), in QuantizedTypeStorage() 36 Type expressedType; member 47 KeyTy(unsigned flags, Type storageType, Type expressedType, in KeyTy() 49 : flags(flags), storageType(storageType), expressedType(expressedType), in KeyTy() 53 Type expressedType; member 62 lhs.expressedType == rhs.expressedType && in genericIsEqual() 72 return llvm::hash_combine(flags, storageType, expressedType, in getHashValue() 78 : QuantizedTypeStorage(key.flags, key.storageType, key.expressedType, in AnyQuantizedTypeStorage() 97 KeyTy(unsigned flags, Type storageType, Type expressedType, double scale, in KeyTy() [all …]
|
D | QuantTypes.cpp | 32 Location loc, unsigned flags, Type storageType, Type expressedType, in verifyConstructionInvariants() argument 81 return static_cast<ImplType *>(impl)->expressedType; in getExpressedType() 181 Type expressedType = in castToExpressedType() local 184 return RankedTensorType::get(sType.getShape(), expressedType); in castToExpressedType() 186 return UnrankedTensorType::get(expressedType); in castToExpressedType() 188 return VectorType::get(sType.getShape(), expressedType); in castToExpressedType() 204 Type expressedType, in get() argument 207 return Base::get(storageType.getContext(), flags, storageType, expressedType, in get() 212 Type expressedType, in getChecked() argument 216 return Base::getChecked(location, flags, storageType, expressedType, in getChecked() [all …]
|
D | TypeParser.cpp | 122 FloatType expressedType; in parseAnyType() local 149 if (parser.parseType(expressedType)) { in parseAnyType() 158 return AnyQuantizedType::getChecked(typeFlags, storageType, expressedType, in parseAnyType() 196 FloatType expressedType; in parseUniformType() local 227 if (parser.parseColon() || parser.parseType(expressedType)) { in parseUniformType() 282 typeFlags, storageType, expressedType, scalesRef, zeroPointsRef, in parseUniformType() 286 return UniformQuantizedType::getChecked(typeFlags, storageType, expressedType, in parseUniformType() 298 FloatType expressedType; in parseCalibratedType() local 307 expressedType = parseExpressedTypeAndRange(parser, min, max); in parseCalibratedType() 308 if (!expressedType) { in parseCalibratedType() [all …]
|
/external/llvm-project/mlir/include/mlir/Dialect/Quant/ |
D | QuantTypes.h | 62 Type expressedType, int64_t storageTypeMin, 206 Type expressedType, int64_t storageTypeMin, 212 Type expressedType, int64_t storageTypeMin, 218 Type expressedType, int64_t storageTypeMin, 263 Type expressedType, double scale, 270 getChecked(unsigned flags, Type storageType, Type expressedType, double scale, 277 Type expressedType, double scale, 320 get(unsigned flags, Type storageType, Type expressedType, 328 getChecked(unsigned flags, Type storageType, Type expressedType, 336 Type expressedType, ArrayRef<double> scales, [all …]
|
D | FakeQuantSupport.h | 53 bool narrowRange, Type expressedType, 62 bool narrowRange, Type expressedType,
|
D | UniformSupport.h | 41 explicit operator bool() const { return (bool)expressedType; } 49 const Type expressedType; member
|
/external/llvm-project/mlir/lib/Dialect/Quant/Utils/ |
D | FakeQuantSupport.cpp | 110 Type expressedType, bool isSigned) { in fakeQuantAttrsToType() argument 111 MLIRContext *ctx = expressedType.getContext(); in fakeQuantAttrsToType() 126 return UniformQuantizedType::getChecked(flags, storageType, expressedType, in fakeQuantAttrsToType() 134 return UniformQuantizedType::getChecked(flags, storageType, expressedType, in fakeQuantAttrsToType() 142 Type expressedType, bool isSigned) { in fakeQuantAttrsToType() argument 150 MLIRContext *ctx = expressedType.getContext(); in fakeQuantAttrsToType() 182 flags, storageType, expressedType, scales, zeroPoints, quantizedDimension, in fakeQuantAttrsToType()
|
D | UniformSupport.cpp | 36 assert(expressedType && "convert() on unsupported conversion"); in convert() 45 if (elementalType.getExpressedType() == expressedType) in convert()
|
/external/llvm-project/mlir/lib/Dialect/Quant/Transforms/ |
D | ConvertSimQuant.cpp | 58 ->convertFakeQuantAttrsToType(op, converter.expressedType); in failableRewrite() 89 Type expressedType) const { in convertFakeQuantAttrsToType() 92 fqOp.max().convertToFloat(), fqOp.narrow_range(), expressedType, in convertFakeQuantAttrsToType() 108 Type expressedType) const { in convertFakeQuantAttrsToType() 118 min, max, fqOp.narrow_range(), expressedType, in convertFakeQuantAttrsToType()
|
/external/llvm-project/mlir/test/Dialect/Quant/ |
D | parse-uniform.mlir | 5 // [signed] storageType, storageTypeMin, storageTypeMax, expressedType, scale, zeroPoint 24 // [unsigned] storageType, expressedType, scale
|
/external/llvm-project/mlir/lib/Dialect/Tosa/Utils/ |
D | QuantUtils.cpp | 322 narrowRange.getValue(), convfunc.expressedType, isSigned); in buildQTypeFromMinMax() 330 max[0], narrowRange.getValue(), convfunc.expressedType, isSigned); in buildQTypeFromMinMax()
|
/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/ |
D | quantization_utils.cc | 98 effective_maxs[0], narrow_range, converter.expressedType, is_signed); in GetQuantizedType() 113 effective_maxs, narrow_range, converter.expressedType, is_signed); in GetQuantizedType()
|