Searched refs:eq_ty (Results 1 – 1 of 1) sorted by relevance
3045 if (auto eq_ty = element_type.dyn_cast<quant::UniformQuantizedType>()) { in matchAndRewrite() local3046 double scale = eq_ty.getScale(); in matchAndRewrite()3047 int64_t zp = eq_ty.getZeroPoint(); in matchAndRewrite()3048 int64_t num_bits = eq_ty.getStorageTypeIntegralWidth(); in matchAndRewrite()3049 zp = eq_ty.isSigned() ? zp : zp - (1 << (num_bits - 1)); in matchAndRewrite()3060 if (quant::UniformQuantizedPerAxisType eq_ty = in matchAndRewrite() local3063 for (auto zp : eq_ty.getZeroPoints()) { in matchAndRewrite()3064 int64_t num_bits = eq_ty.getStorageTypeIntegralWidth(); in matchAndRewrite()3065 zps.push_back(eq_ty.isSigned() ? zp : zp - (1 << (num_bits - 1))); in matchAndRewrite()3069 for (auto scale : eq_ty.getScales()) { in matchAndRewrite()[all …]