Home
last modified time | relevance | path

Searched refs:dequantize (Results 1 – 25 of 67) sorted by relevance

123

/external/tensorflow/tensorflow/lite/kernels/
Ddequantize.cc26 namespace dequantize { namespace
102 dequantize::Init, dequantize::Free, dequantize::Prepare, in Register_DEQUANTIZE_OPT()
103 dequantize::Eval<dequantize::kGenericOptimized>}; in Register_DEQUANTIZE_OPT()
108 static TfLiteRegistration r = {dequantize::Init, dequantize::Free, in Register_DEQUANTIZE_REF()
109 dequantize::Prepare, in Register_DEQUANTIZE_REF()
110 dequantize::Eval<dequantize::kReference>}; in Register_DEQUANTIZE_REF()
Dnumeric_verify.cc141 template <builtin::dequantize::KernelType kernel_type>
154 auto status = builtin::dequantize::DequantizeImpl<kernel_type>( in Eval()
232 numeric_verify::Eval<builtin::dequantize::kGenericOptimized>}; in Register_NUMERIC_VERIFY_OPT()
239 numeric_verify::Eval<builtin::dequantize::kReference>}; in Register_NUMERIC_VERIFY_REF()
Ddetection_postprocess.cc255 Dequantizer dequantize(quant_zero_point, quant_scale); in DequantizeBoxEncodings() local
261 box_centersize->y = dequantize(boxes[0]); in DequantizeBoxEncodings()
262 box_centersize->x = dequantize(boxes[1]); in DequantizeBoxEncodings()
263 box_centersize->h = dequantize(boxes[2]); in DequantizeBoxEncodings()
264 box_centersize->w = dequantize(boxes[3]); in DequantizeBoxEncodings()
736 Dequantizer dequantize(quant_zero_point, quant_scale); in DequantizeClassPredictions() local
739 GetTensorData<float>(scores)[idx] = dequantize(scores_quant[idx]); in DequantizeClassPredictions()
Ddequantize.h33 namespace dequantize {
/external/tensorflow/tensorflow/compiler/mlir/lite/tests/
Dprepare-quantize-post-training.mlir35 // CHECK: %[[dq:.*]] = "tfl.dequantize"(%[[q]]) : (tensor<1x20x!quant.uniform<i16:f32, 2.44140625E-…
36 // Checks if input 19 is correctly passed from a dequantize op.
91 // CHECK-DAG: %[[input_0:.*]] = "tfl.dequantize"({{.*}}) : (tensor<1x5x!quant.uniform<i8:f32, 0.010…
92 // CHECK-DAG: %[[input_1:.*]] = "tfl.dequantize"({{.*}}) : (tensor<2x5x!quant.uniform<i8<-127:127>:…
93 // CHECK-DAG: %[[input_2:.*]] = "tfl.dequantize"({{.*}}) : (tensor<2x5x!quant.uniform<i8<-127:127>:…
94 // CHECK-DAG: %[[input_3:.*]] = "tfl.dequantize"({{.*}}) : (tensor<2x5x!quant.uniform<i8<-127:127>:…
95 // CHECK-DAG: %[[input_4:.*]] = "tfl.dequantize"({{.*}}) : (tensor<2x5x!quant.uniform<i8<-127:127>:…
96 // CHECK-DAG: %[[input_5:.*]] = "tfl.dequantize"({{.*}}) : (tensor<2x4x!quant.uniform<i8<-127:127>:…
97 // CHECK-DAG: %[[input_6:.*]] = "tfl.dequantize"({{.*}}) : (tensor<2x4x!quant.uniform<i8<-127:127>:…
98 // CHECK-DAG: %[[input_7:.*]] = "tfl.dequantize"({{.*}}) : (tensor<2x4x!quant.uniform<i8<-127:127>:…
[all …]
Dprepare-quantize.mlir8 // CHECK-NEXT: %[[dq:.*]] = "tfl.dequantize"(%[[q]])
10 // CHECK-NEXT: %[[dq_0:.*]] = "tfl.dequantize"(%[[q_0]])
26 …%0 = "tfl.dequantize"(%cst) : (tensor<2x2x!quant.uniform<u8:f32, 7.8431372549019615E-4:128>>) -> t…
31 // CHECK: %1 = "tfl.dequantize"(%0)
52 // CHECK: %[[dq1:.*]] = "tfl.dequantize"(%[[q1]])
54 // CHECK: %[[dq2:.*]] = "tfl.dequantize"(%[[q2]])
62 …%input = "tfl.dequantize"(%arg0) : (tensor<1x224x224x3x!quant.uniform<u8:f32, 1.5>>) -> tensor<1x2…
63 …%weight = "tfl.dequantize"(%arg1) : (tensor<32x3x3x3x!quant.uniform<u8<1:255>:f32:3, {1.0,2.0,3.0}…
71 // CHECK-NEXT: %[[bias:.*]] = "tfl.dequantize"(%[[qbias]])
72 // CHECK-NEXT: %[[in:.*]] = "tfl.dequantize"(%arg0)
[all …]
Dprepare-quantize-signed.mlir7 %2 = "tfl.dequantize"(%1) : (tensor<2x2x!quant.uniform<u8:f32, 1.0:128>>) -> tensor<2x2xf32>
11 // CHECK-NEXT: %[[dq:.*]] = "tfl.dequantize"(%[[q]])
18 …%2 = "tfl.dequantize"(%1) : (tensor<2x2x!quant.uniform<u8:f32:1, {1.0:128, 1.0}>>) -> tensor<2x2xf…
22 // CHECK-NEXT: %[[dq:.*]] = "tfl.dequantize"(%0)
29 …%2 = "tfl.dequantize"(%1) : (tensor<2x2x!quant.uniform<u8<1:255>:f32, 1.0:255>>) -> tensor<2x2xf32>
33 // CHECK-NEXT: %[[dq:.*]] = "tfl.dequantize"(%[[q]])
53 // CHECK: %[[dq1:.*]] = "tfl.dequantize"(%[[q1]])
55 // CHECK: %[[dq2:.*]] = "tfl.dequantize"(%[[q2]])
75 // CHECK: %[[dq1:.*]] = "tfl.dequantize"(%[[q1]])
77 // CHECK: %[[dq2:.*]] = "tfl.dequantize"(%[[q2]])
[all …]
Ddefault_quant_params.mlir12 // CHECK: %[[dq:.*]] = "tfl.dequantize"(%[[add]]) : (tensor<2x2x!quant.uniform<u8:f32, 0.0078431372…
19 %1 = "tfl.dequantize"(%0) : (tensor<2x2x!quant.uniform<u8:f32, 1.0:128>>) -> tensor<2x2xf32>
26 // CHECK: %[[dq:.*]] = "tfl.dequantize"(%[[add]]) : (tensor<2x2x!quant.uniform<u8:f32, 0.0078431372…
32 %1 = "tfl.dequantize"(%arg0) : (tensor<2x2x!quant.uniform<u8:f32, 1.0>>) -> tensor<2x2xf32>
38 // CHECK: %[[dq:.*]] = "tfl.dequantize"(%[[add]]) : (tensor<2x2x!quant.uniform<u8:f32, 0.0078431372…
46 %2 = "tfl.dequantize"(%0) : (tensor<2x2x!quant.uniform<u8:f32, 1.0:128>>) -> tensor<2x2xf32>
47 %3 = "tfl.dequantize"(%1) : (tensor<2x1x!quant.uniform<u8:f32, 1.0:128>>) -> tensor<2x1xf32>
54 // CHECK: %[[dq:.*]] = "tfl.dequantize"(%[[add]]) : (tensor<2x2x!quant.uniform<u8:f32, 0.0078431372…
60 …%0 = "tfl.dequantize"(%arg0) : (tensor<1x224x224x3x!quant.uniform<u8:f32, 1.0>>) -> tensor<1x224x2…
61 …%1 = "tfl.dequantize"(%arg1) : (tensor<32x3x3x3x!quant.uniform<u8<1:255>:f32, 1.0>>) -> tensor<32x…
[all …]
Dquantize.mlir38 …%2 = "tfl.dequantize"(%1) : (tensor<2x2x!quant.uniform<u8:f32, 7.8431372549019615E-4:128>>) -> ten…
48 …%0 = "tfl.dequantize"(%cst) : (tensor<2x2x!quant.uniform<u8:f32, 7.8431372549019615E-4:128>>) -> t…
61 …%2 = "tfl.dequantize"(%arg0) : (tensor<1x224x224x3x!quant.uniform<u8:f32, 7.812500e-03:128>>) -> t…
64 …%4 = "tfl.dequantize"(%3) : (tensor<32x3x3x3x!quant.uniform<u8<1:255>:f32, 0.1>>) -> tensor<32x3x3…
76 // DEBUG: %[[act:.*]] = "tfl.dequantize"(%arg0) : (tensor<1x224x224x3x!quant.uniform<u8:f32, 7.8125…
87 …%2 = "tfl.dequantize"(%arg0) : (tensor<1x224x224x3x!quant.uniform<u8:f32, 7.812500e-03:128>>) -> t…
89 …%4 = "tfl.dequantize"(%3) : (tensor<32x3x3x3x!quant.uniform<u8<1:255>:f32, 0.021826678373682216:15…
104 …%2 = "tfl.dequantize"(%arg0) : (tensor<1x224x224x3x!quant.uniform<u8:f32, 7.812500e-03:128>>) -> t…
106 …%4 = "tfl.dequantize"(%3) : (tensor<32x12x!quant.uniform<u8<1:255>:f32, 0.021826678373682216:151>>…
119 %0 = "tfl.dequantize"(%arg0) : (tensor<3x!quant.uniform<u8:f32, 1.0>>) -> tensor<3xf32>
[all …]
Dpost-quantize.mlir8 %2 = "tfl.dequantize"(%1#0) : (tensor<2x!quant.uniform<u8:f32, 1.0>>) -> tensor<2xf32>
9 %3 = "tfl.dequantize"(%1#1) : (tensor<2x!quant.uniform<u8:f32, 1.0>>) -> tensor<2xf32>
12 %4 = "tfl.dequantize"(%1#2) : (tensor<2x!quant.uniform<u8:f32, 1.0>>) -> tensor<2xf32>
40 …%6 = "tfl.dequantize"(%5) : (tensor<1x401408x!quant.uniform<u8:f32, 3.906250e-03>>) -> tensor<1x40…
48 …%3 = "tfl.dequantize"(%2) : (tensor<2x4x!quant.uniform<u8:f32, 0.49803921568627452>>) -> tensor<2x…
74 …%2 = "tfl.dequantize"(%1) : (tensor<128x16x!quant.uniform<u8:f32, 3.906250e-03>>) -> tensor<128x16…
Dprepare-tf.mlir143 // CHECK: %[[dq:.*]] = "tfl.dequantize"(%[[q]])
157 // CHECK: %2 = "tfl.dequantize"(%1)
187 // CHECK: %[[DEQUANTIZE:.*]] = "tfl.dequantize"(%[[QUANTIZE]])
235 %1 = "tfl.dequantize"(%0): (tensor<1x2x!quant.uniform<u8:f32, 1.0>>) -> (tensor<1x2xf32>)
244 // CHECK: %[[dq:.*]] = "tfl.dequantize"(%[[q]])
254 %1 = "tfl.dequantize"(%0): (tensor<1x2x!quant.uniform<u8:f32, 1.0>>) -> (tensor<1x2xf32>)
263 // CHECK: %[[dq:.*]] = "tfl.dequantize"(%[[q]])
271 %1 = "tfl.dequantize"(%0): (tensor<1x2x!quant.uniform<u8:f32, 1.0>>) -> (tensor<1x2xf32>)
294 // CHECK: %[[DEQUANTIZE:.*]] = "tfl.dequantize"(%[[QUANTIZE]])
315 // CHECK: %[[DEQUANTIZE:.*]] = "tfl.dequantize"(%[[QUANTIZE]])
[all …]
/external/tensorflow/tensorflow/lite/micro/kernels/
Ddequantize.cc30 namespace dequantize { namespace
146 return {/*init=*/dequantize::Init, in Register_DEQUANTIZE()
148 /*prepare=*/dequantize::Prepare, in Register_DEQUANTIZE()
149 /*invoke=*/dequantize::Eval, in Register_DEQUANTIZE()
Ddetection_postprocess.cc245 Dequantizer dequantize(quant_zero_point, quant_scale); in DequantizeBoxEncodings() local
251 box_centersize->y = dequantize(boxes[0]); in DequantizeBoxEncodings()
252 box_centersize->x = dequantize(boxes[1]); in DequantizeBoxEncodings()
253 box_centersize->h = dequantize(boxes[2]); in DequantizeBoxEncodings()
254 box_centersize->w = dequantize(boxes[3]); in DequantizeBoxEncodings()
712 Dequantizer dequantize(quant_zero_point, quant_scale); in DequantizeClassPredictions() local
716 scores[idx] = dequantize(scores_quant[idx]); in DequantizeClassPredictions()
/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/tensorflow/
Dtf_to_quant.cc124 auto dequantize = rewriter.create<quant::DequantizeCastOp>( in matchAndRewrite() local
126 value.replaceAllUsesWith(dequantize); in matchAndRewrite()
127 quantize.getOperation()->replaceUsesOfWith(dequantize, value); in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/
Dquantization.mlir9 // CHECK: %{{.*}} = "tfl.dequantize"(%{{.*}}) : (tensor<1x401408x!quant.uniform<u8:f32, 3.906250e…
18 …%6 = "tfl.dequantize"(%5) : (tensor<1x401408x!quant.uniform<u8:f32, 3.906250e-03>>) -> tensor<1x40…
27 %3 = "tfl.dequantize"(%2) : (tensor<2x2x!quant.uniform<u8:f32, 1.0>>) -> tensor<2x2xf32>
33 // CHECK-NEXT: %[[DQ:.*]] = "tfl.dequantize"(%[[CONCAT]]) : (tensor<2x2x!quant.uniform<u8:f32, 1.00…
/external/tensorflow/tensorflow/python/ops/
Ddequantize_op_test.py38 dequantized = array_ops.dequantize(input_op, min_range, max_range,
128 array_ops.dequantize(
133 array_ops.dequantize(
Dquantized_ops_test.py54 op = array_ops.dequantize(x, x_min, x_max, mode="MIN_FIRST")
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Ddefault_quant_params.cc183 auto dequantize = builder.create<TFL::DequantizeOp>( in QuantizeValue() local
185 value.replaceAllUsesWith(dequantize); in QuantizeValue()
189 quantize.getOperation()->replaceUsesOfWith(dequantize, value); in QuantizeValue()
Dquantize_patterns.td27 // Squash tfl.dequantize and tfl.quantize pairs.
32 // If the tfl.dequantize op wasn't fused, we shouldn't quantize the floating
/external/tensorflow/tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/
Ddepthwise_conv2d.mlir43 // CHECK-NEXT: name: "tfl.dequantize",
99 …%2 = "tfl.dequantize"(%1) : (tensor<32x3x3x3x!quant.uniform<u8<1:255>:f32, 0.021826678373682216:15…
Ddepthwise_conv2d_v2.mlir43 // CHECK-NEXT: name: "tfl.dequantize",
101 …%2 = "tfl.dequantize"(%1) : (tensor<32x3x3x3x!quant.uniform<u8<1:255>:f32, 0.021826678373682216:15…
Dquantization.mlir100 // CHECK-NEXT: name: "tfl.dequantize",
178 …%7 = "tfl.dequantize"(%6) : (tensor<1x401408x!quant.uniform<u8:f32, 3.906250e-03>>) -> tensor<1x40…
/external/llvm-project/mlir/include/mlir/Dialect/Quant/
DPasses.td23 "corresponding quantize/dequantize casts";
/external/tensorflow/tensorflow/lite/g3doc/inference_with_metadata/
Dlite_support.md151 // Post-processor which dequantize the result
227 The `TensorProcessor` can be used to quantize input tensors or dequantize output
229 developer can use `DequantizeOp` to dequantize the result to a floating point
235 // Post-processor which dequantize the result
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.quantization.pbtxt4 name: "dequantize"

123