Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/compiler/mlir/tosa/transforms/
Dlegalize_tfl.cc3045 if (auto eq_ty = element_type.dyn_cast<quant::UniformQuantizedType>()) { in matchAndRewrite() local
3046 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() local
3063 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 …]