Searched refs:input_qtype (Results 1 – 3 of 3) sorted by relevance
/external/tensorflow/tensorflow/compiler/mlir/tosa/transforms/ |
D | legalize_common.cc | 2215 auto input_qtype = in convertFusedActivation() local 2227 rewriter, op, input_value, 1.0f, input_qtype.getZeroPoint()); in convertFusedActivation() 2241 int64_t rescaled_6 = std::llround(6.0f / input_qtype.getScale()) + in convertFusedActivation() 2242 input_qtype.getZeroPoint(); in convertFusedActivation() 2252 int64_t rescaled_n1 = std::llround(-1.0f / input_qtype.getScale()) + in convertFusedActivation() 2253 input_qtype.getZeroPoint(); in convertFusedActivation() 2254 int64_t rescaled_1 = std::llround(1.0f / input_qtype.getScale()) + in convertFusedActivation() 2255 input_qtype.getZeroPoint(); in convertFusedActivation() 2269 input_qtype.getZeroPoint()); in convertFusedActivation() 2474 auto input_qtype = in convertReduceSumOp() local [all …]
|
D | legalize_tfl.cc | 169 UniformQuantizedType input_qtype = in matchAndRewrite() local 177 rewriter, op, tfl_relu_op.x(), 1.0f, input_qtype.getZeroPoint()); in matchAndRewrite() 226 UniformQuantizedType input_qtype = in matchAndRewrite() local 232 int64_t rescaled_6 = std::llround(6.0f / input_qtype.getScale()) + in matchAndRewrite() 233 input_qtype.getZeroPoint(); in matchAndRewrite() 236 rewriter, op, tfl_relu6_op.x(), 1.0f, input_qtype.getZeroPoint()); in matchAndRewrite() 2584 mlir::quant::UniformQuantizedType input_qtype = in matchAndRewrite() local 2604 (input_qtype.getScale() * 128.0) / input_sample_grain, in matchAndRewrite() 2605 input_qtype.getZeroPoint(), 0); in matchAndRewrite() 2655 mlir::quant::UniformQuantizedType input_qtype = in matchAndRewrite() local [all …]
|
D | legalize_utils.cc | 83 auto input_qtype = in buildRescaleOpConvOutput() local 88 double input_scale = input_qtype.getScale(); in buildRescaleOpConvOutput()
|