Home
last modified time | relevance | path

Searched refs:expressedType (Results 1 – 12 of 12) sorted by relevance

/external/llvm-project/mlir/lib/Dialect/Quant/IR/
DTypeDetail.h24 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 …]
DQuantTypes.cpp32 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 …]
DTypeParser.cpp122 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/
DQuantTypes.h62 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 …]
DFakeQuantSupport.h53 bool narrowRange, Type expressedType,
62 bool narrowRange, Type expressedType,
DUniformSupport.h41 explicit operator bool() const { return (bool)expressedType; }
49 const Type expressedType; member
/external/llvm-project/mlir/lib/Dialect/Quant/Utils/
DFakeQuantSupport.cpp110 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()
DUniformSupport.cpp36 assert(expressedType && "convert() on unsupported conversion"); in convert()
45 if (elementalType.getExpressedType() == expressedType) in convert()
/external/llvm-project/mlir/lib/Dialect/Quant/Transforms/
DConvertSimQuant.cpp58 ->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/
Dparse-uniform.mlir5 // [signed] storageType, storageTypeMin, storageTypeMax, expressedType, scale, zeroPoint
24 // [unsigned] storageType, expressedType, scale
/external/llvm-project/mlir/lib/Dialect/Tosa/Utils/
DQuantUtils.cpp322 narrowRange.getValue(), convfunc.expressedType, isSigned); in buildQTypeFromMinMax()
330 max[0], narrowRange.getValue(), convfunc.expressedType, isSigned); in buildQTypeFromMinMax()
/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/
Dquantization_utils.cc98 effective_maxs[0], narrow_range, converter.expressedType, is_signed); in GetQuantizedType()
113 effective_maxs, narrow_range, converter.expressedType, is_signed); in GetQuantizedType()