Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/compiler/mlir/tosa/transforms/
Dconvert_tfl_uint8.cc92 output_element_type.getZeroPoint()) * in matchAndRewrite()
96 output_element_type.getZeroPoint()) * in matchAndRewrite()
166 uint8_element_type.getZeroPoint()) * in convert_graph_uint8_tensor()
170 uint8_element_type.getZeroPoint()) * in convert_graph_uint8_tensor()
185 int32_t uint8_zp = uint8_element_type.getZeroPoint(); in convert_graph_uint8_tensor()
235 output_element_type.getZeroPoint()) * in convert_graph_uint8_tensor()
239 output_element_type.getZeroPoint()) * in convert_graph_uint8_tensor()
300 int32_t int8_zp = int8_output_element_type.getZeroPoint(); in convert_graph_uint8_tensor()
301 int32_t uint8_zp = uint8_output_element_type.getZeroPoint(); in convert_graph_uint8_tensor()
Dlegalize_tfl.cc177 rewriter, op, tfl_relu_op.x(), 1.0f, input_qtype.getZeroPoint()); in matchAndRewrite()
184 output_qtype.getZeroPoint()); in matchAndRewrite()
233 input_qtype.getZeroPoint(); in matchAndRewrite()
236 rewriter, op, tfl_relu6_op.x(), 1.0f, input_qtype.getZeroPoint()); in matchAndRewrite()
242 output_qtype.getZeroPoint()); in matchAndRewrite()
295 input_x_qtype.getZeroPoint() != input_y_qtype.getZeroPoint()) { in matchAndRewrite()
302 rewriter, op, tfl_equal_op.x(), 1.0f, input_x_qtype.getZeroPoint()); in matchAndRewrite()
304 rewriter, op, tfl_equal_op.y(), 1.0f, input_y_qtype.getZeroPoint()); in matchAndRewrite()
357 input_lhs_qtype.getZeroPoint() != input_rhs_qtype.getZeroPoint()) { in matchAndRewrite()
365 input_lhs_qtype.getZeroPoint()); in matchAndRewrite()
[all …]
Dlegalize_common.cc485 rewriter, op, input_lhs_val, 1.0f, input_lhs_qtype.getZeroPoint()); in convertMultiplyOp()
487 rewriter, op, input_rhs_val, 1.0f, input_rhs_qtype.getZeroPoint()); in convertMultiplyOp()
492 output_rescale_scale, output_qtype.getZeroPoint()); in convertMultiplyOp()
658 lhs_zeropoint = lhs_quant_type.getZeroPoint(); in convertConcatV2Op()
660 rhs_zeropoint = rhs_quant_type.getZeroPoint(); in convertConcatV2Op()
662 result_zeropoint = result_quant_type.getZeroPoint(); in convertConcatV2Op()
708 rhs_zeropoint = rhs_quant_type.getZeroPoint(); in convertConcatV2Op()
1453 in_quant_type.getZeroPoint(), 0); in convertSoftmaxOp()
1570 out_quant_type.getZeroPoint()); in convertSoftmaxOp()
2227 rewriter, op, input_value, 1.0f, input_qtype.getZeroPoint()); in convertFusedActivation()
[all …]
Dlegalize_utils.cc90 int64_t output_zp = output_qtype.getZeroPoint(); in buildRescaleOpConvOutput()
130 int64_t output_zp = output_qtype.getZeroPoint(); in buildRescaleOpConvOutput()
/external/llvm-project/mlir/lib/Dialect/Tosa/Utils/
DQuantUtils.cpp127 int64_t inputZp = inputQType.getZeroPoint(); in buildConvOpQuantizationAttr()
131 weightZp = weightPerTensorQType.getZeroPoint(); in buildConvOpQuantizationAttr()
169 int64_t aZp = aQType.getZeroPoint(); in buildMatMulOpQuantizationAttr()
170 int64_t bZp = bQType.getZeroPoint(); in buildMatMulOpQuantizationAttr()
205 int64_t inputZp = inputQType.getZeroPoint(); in buildUnaryOpQuantizationAttr()
206 int64_t outputZp = outputQType.getZeroPoint(); in buildUnaryOpQuantizationAttr()
232 int64_t inputZp = inputQType.getZeroPoint(); in buildPadOpQuantizationAttr()
/external/llvm-project/mlir/test/lib/Dialect/Tosa/
DTosaTestPasses.cpp68 outputElementType.getZeroPoint()) * in matchAndRewrite()
71 outputElementType.getZeroPoint()) * in matchAndRewrite()
157 int64_t outputZp = outputQType.getZeroPoint(); in matchAndRewrite()
/external/llvm-project/mlir/include/mlir/Dialect/Quant/
DQuantTypes.h287 int64_t getZeroPoint() const;
294 bool isFixedPoint() const { return isSigned() && getZeroPoint() == 0; } in isFixedPoint()
DUniformSupport.h64 static_cast<double>(uniformType.getZeroPoint()), in UniformQuantizedValueConverter()
/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/
Ddevice_target.cc137 o_spec.getScale(), o_spec.getZeroPoint(), in DecomposeMultiplyAccumulateScale()
172 o_spec.getScale(), o_spec.getZeroPoint(), in DecomposeSameScale()
Dquantization_utils.h407 uqtype.getScale(), uqtype.getZeroPoint() - offset, in matchAndRewrite()
Dquantization_utils.cc573 scales[0], q_type.getZeroPoint(), q_type.getStorageTypeMin(), in DownCastScale()
/external/tensorflow/tensorflow/lite/java/src/test/java/org/tensorflow/lite/
DTensorTest.java516 long zeroPoint = quantizationParams.getZeroPoint(); in testQuantizationParameters_floatModel()
529 long zeroPoint = quantizationParams.getZeroPoint(); in testQuantizationParameters_quantizedModel()
/external/llvm-project/mlir/lib/Dialect/Quant/IR/
DTypeParser.cpp389 printQuantParams(type.getScale(), type.getZeroPoint(), out); in printUniformQuantizedType()
DQuantTypes.cpp286 int64_t UniformQuantizedType::getZeroPoint() const { in getZeroPoint() function in UniformQuantizedType
/external/tensorflow/tensorflow/lite/java/src/main/java/org/tensorflow/lite/
DTensor.java84 public int getZeroPoint() { in getZeroPoint() method in Tensor.QuantizationParams
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Dprepare_quantize_helper.h507 qtype.getScale() * scale, qtype.getZeroPoint(), in GetUniformQuantizedTypeForBiasWithScale()
/external/llvm-project/clang/test/SemaObjC/
Dattr-swift_name.m153 Point3D getZeroPoint(void) SWIFT_NAME("getter:Point3D.zero()"); function
/external/tensorflow/tensorflow/compiler/mlir/lite/
Dflatbuffer_export.cc722 builder_.CreateVector<int64_t>({qtype.getZeroPoint()})); in BuildTensorFromType()
809 builder_.CreateVector<int64_t>({qtype.getZeroPoint()})); in BuildTensor()
Dflatbuffer_import.cc893 per_tensor.getZeroPoint(), per_tensor.getStorageTypeMin() - 1, in PostProcessFuncOp()