Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/compiler/mlir/tosa/transforms/
Dlegalize_common.h216 int64_t zeropoint);
223 int64_t zeropoint);
Dlegalize_common.cc2650 int64_t zeropoint) { in convertQuantizeOp() argument
2669 getTosaConstTensorSingleF32(rewriter, op, static_cast<float>(zeropoint)); in convertQuantizeOp()
2695 int64_t zeropoint) { in convertDequantizeOp() argument
2710 getTosaConstTensorSingleF32(rewriter, op, static_cast<float>(zeropoint)); in convertDequantizeOp()
2767 int64_t zeropoint = std::llround((-min) / scale + static_cast<double>(qmin)); in convertFakeQuantOp() local
2771 input_value, 1.0 / scale, zeropoint); in convertFakeQuantOp()
2777 quantized_val.getValue(), scale, zeropoint); in convertFakeQuantOp()
/external/tensorflow/tensorflow/compiler/mlir/tosa/g3doc/
Dlegalization.md451 int64_t zeropoint = (int64_t)std::round((-min) / scale + double(qmin))
453 %quantized = lower_quantized_op(%inputs.type, %inputs, 1.0 / scale, zeropoint)
455 %dequantized = lower_dequantized_op(output_type, %quantized_op, scale, zeropoint)
490 Value lower_quantized_op(type output_type, Value %inputs, double scale, int64_t zeropoint)
499 Value lower_dequantized_op(type output_type, Value %inputs, double scale, int64_t zeropoint)