Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/compiler/mlir/tosa/transforms/
Dlegalize_tfl.cc205 UniformQuantizedType output_qtype = in matchAndRewrite() local
209 clamp_min = output_qtype.getZeroPoint(); in matchAndRewrite()
212 input_qtype.getScale() / output_qtype.getScale(), in matchAndRewrite()
213 input_qtype.getZeroPoint(), output_qtype.getZeroPoint(), in matchAndRewrite()
256 UniformQuantizedType output_qtype = in matchAndRewrite() local
260 clamp_min = output_qtype.getZeroPoint() - in matchAndRewrite()
261 std::llround(1.0f / output_qtype.getScale()); in matchAndRewrite()
263 clamp_max = std::llround(1.0f / output_qtype.getScale()) + in matchAndRewrite()
264 output_qtype.getZeroPoint(); in matchAndRewrite()
268 input_qtype.getScale() / output_qtype.getScale(), in matchAndRewrite()
[all …]
Dlegalize_utils.cc88 auto output_qtype = output_type.getElementType() in buildRescaleOpConvOutput() local
93 int64_t output_zp = output_qtype.getZeroPoint(); in buildRescaleOpConvOutput()
94 double output_scale = output_qtype.getScale(); in buildRescaleOpConvOutput()
96 bool scale32 = isScale32(output_qtype); in buildRescaleOpConvOutput()
134 int64_t output_zp = output_qtype.getZeroPoint(); in buildRescaleOpConvOutput()
135 double output_scale = output_qtype.getScale(); in buildRescaleOpConvOutput()
Dlegalize_common.cc508 auto output_qtype = in convertMultiplyOp() local
515 float output_scale = output_qtype.getScale(); in convertMultiplyOp()
531 output_rescale_scale, 0, output_qtype.getZeroPoint(), in convertMultiplyOp()
2845 auto output_qtype = in convertReduceSumOp() local
2853 1.0 / (output_qtype.getScale() * static_cast<double>(1 << input_shift)); in convertReduceSumOp()
2856 output_zp = output_qtype.getZeroPoint(); in convertReduceSumOp()
2917 auto output_qtype = in convertReduceMeanOp() local
2921 output_scale = div_scale * input_qtype.getScale() / output_qtype.getScale(); in convertReduceMeanOp()
2924 output_zp = output_qtype.getZeroPoint(); in convertReduceMeanOp()