Home
last modified time | relevance | path

Searched refs:narrow_range (Results 1 – 25 of 100) sorted by relevance

1234

/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.quantization.pbtxt5 …nput\', \'min_range\', \'max_range\', \'mode\', \'name\', \'axis\', \'narrow_range\', \'dtype\'], …
9 …argspec: "args=[\'inputs\', \'min\', \'max\', \'num_bits\', \'narrow_range\', \'name\'], varargs=N…
13 …argspec: "args=[\'gradients\', \'inputs\', \'min\', \'max\', \'num_bits\', \'narrow_range\', \'nam…
17 …argspec: "args=[\'inputs\', \'min\', \'max\', \'num_bits\', \'narrow_range\', \'name\'], varargs=N…
21 …argspec: "args=[\'gradients\', \'inputs\', \'min\', \'max\', \'num_bits\', \'narrow_range\', \'nam…
25 …argspec: "args=[\'inputs\', \'min\', \'max\', \'num_bits\', \'narrow_range\', \'name\'], varargs=N…
29 …argspec: "args=[\'gradients\', \'inputs\', \'min\', \'max\', \'num_bits\', \'narrow_range\', \'nam…
33 …_range\', \'max_range\', \'T\', \'mode\', \'round_mode\', \'name\', \'narrow_range\', \'axis\', \'…
37 …d_input\', \'num_bits\', \'range_given\', \'round_mode\', \'name\', \'narrow_range\', \'axis\'], v…
41 …d_input\', \'num_bits\', \'range_given\', \'round_mode\', \'name\', \'narrow_range\', \'axis\'], v…
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.quantization.pbtxt5 …nput\', \'min_range\', \'max_range\', \'mode\', \'name\', \'axis\', \'narrow_range\', \'dtype\'], …
9 …argspec: "args=[\'inputs\', \'min\', \'max\', \'num_bits\', \'narrow_range\', \'name\'], varargs=N…
13 …argspec: "args=[\'gradients\', \'inputs\', \'min\', \'max\', \'num_bits\', \'narrow_range\', \'nam…
17 …argspec: "args=[\'inputs\', \'min\', \'max\', \'num_bits\', \'narrow_range\', \'name\'], varargs=N…
21 …argspec: "args=[\'gradients\', \'inputs\', \'min\', \'max\', \'num_bits\', \'narrow_range\', \'nam…
25 …argspec: "args=[\'inputs\', \'min\', \'max\', \'num_bits\', \'narrow_range\', \'name\'], varargs=N…
29 …argspec: "args=[\'gradients\', \'inputs\', \'min\', \'max\', \'num_bits\', \'narrow_range\', \'nam…
33 …_range\', \'max_range\', \'T\', \'mode\', \'round_mode\', \'name\', \'narrow_range\', \'axis\', \'…
37 …d_input\', \'num_bits\', \'range_given\', \'round_mode\', \'name\', \'narrow_range\', \'axis\'], v…
41 …d_input\', \'num_bits\', \'range_given\', \'round_mode\', \'name\', \'narrow_range\', \'axis\'], v…
/external/tensorflow/tensorflow/core/kernels/
Dfake_quant_ops.cc80 bool narrow_range; in FakeQuantWithMinMaxArgsOp() local
81 OP_REQUIRES_OK(context, context->GetAttr("narrow_range", &narrow_range)); in FakeQuantWithMinMaxArgsOp()
82 quant_min_ = narrow_range ? 1 : 0; in FakeQuantWithMinMaxArgsOp()
121 bool narrow_range; in FakeQuantWithMinMaxArgsGradientOp() local
122 OP_REQUIRES_OK(context, context->GetAttr("narrow_range", &narrow_range)); in FakeQuantWithMinMaxArgsGradientOp()
123 quant_min_ = narrow_range ? 1 : 0; in FakeQuantWithMinMaxArgsGradientOp()
194 bool narrow_range; in FakeQuantWithMinMaxVarsOp() local
195 OP_REQUIRES_OK(context, context->GetAttr("narrow_range", &narrow_range)); in FakeQuantWithMinMaxVarsOp()
196 quant_min_ = narrow_range ? 1 : 0; in FakeQuantWithMinMaxVarsOp()
234 bool narrow_range; in FakeQuantWithMinMaxVarsGradientOp() local
[all …]
Dquantize_and_dequantize_op_gpu.cu.cc35 QuantizerRoundMode round_mode, bool narrow_range, in operator ()()
39 input_max_tensor, round_mode, narrow_range, output); in operator ()()
48 QuantizerRoundMode round_mode, bool narrow_range, in operator ()()
52 input_max_tensor, round_mode, narrow_range, output); in operator ()()
Dquantize_and_dequantize_op.h50 QuantizerRoundMode round_mode, bool narrow_range,
59 QuantizerRoundMode round_mode, bool narrow_range,
144 QuantizerRoundMode round_mode, bool narrow_range, in ComputeQuantizationRange() argument
151 const int64 min_quantized = signed_input ? narrow_range in ComputeQuantizationRange()
185 QuantizerRoundMode round_mode, bool narrow_range, in Compute()
203 ComputeQuantizationRange(signed_input, num_bits, round_mode, narrow_range, in Compute()
226 QuantizerRoundMode round_mode, bool narrow_range, in Compute()
260 ComputeQuantizationRange(signed_input, num_bits, round_mode, narrow_range, in Compute()
/external/tensorflow/tensorflow/compiler/tests/
Dfake_quant_ops_test.py82 def _TestOp(self, input_min, input_max, num_bits, narrow_range, argument
119 narrow_range=narrow_range)
180 def _TestOp(self, input_min, input_max, num_bits, narrow_range, argument
213 narrow_range=narrow_range)
281 def _TestOp(self, input_min, input_max, num_bits, narrow_range, argument
320 narrow_range=narrow_range)
386 def _TestOp(self, input_min, input_max, num_bits, narrow_range, argument
423 narrow_range=narrow_range)
/external/tensorflow/tensorflow/python/ops/
Ddequantize_op_test.py35 mode="MIN_COMBINED", narrow_range=False): argument
39 mode=mode, narrow_range=narrow_range)
64 if narrow_range:
92 mode="SCALED", narrow_range=True)
94 mode="SCALED", narrow_range=True)
96 mode="SCALED", narrow_range=True)
Darray_ops.py3826 narrow_range=op.get_attr("narrow_range"))
3838 narrow_range=op.get_attr("narrow_range"))
3850 narrow_range=op.get_attr("narrow_range"))
5749 narrow_range=False, argument
5768 narrow_range=narrow_range,
5779 narrow_range=narrow_range,
5800 narrow_range=False, argument
5813 narrow_range=narrow_range,
5824 narrow_range=narrow_range,
5839 narrow_range=False, argument
[all …]
/external/llvm-project/mlir/test/Dialect/Quant/
Dconvert-fakequant.mlir19 // Verifies a quint8 single point (with narrow_range = true).
28 min = 0.0 : f32, max = 0.0 : f32, num_bits = 8, narrow_range = true
49 // Verifies a quint8 asymmetric 0..1 range (with narrow_range = true).
58 min = 0.0 : f32, max = 1.0 : f32, num_bits = 8, narrow_range = true
73 min = -1.0 : f32, max = 0.9921875 : f32, num_bits = 8, narrow_range = false
94 // Verifies a qint8 single point (with narrow_range = true).
103 min = 0.0 : f32, max = 0.0 : f32, num_bits = 8, narrow_range = true, is_signed = true
124 // Verifies a qint8 asymmetric 0..1 range (with narrow_range = true).
133 min = 0.0 : f32, max = 1.0 : f32, num_bits = 8, narrow_range = true, is_signed = true
148 min = -1.0 : f32, max = 0.9921875 : f32, num_bits = 8, narrow_range = false, is_signed = true
[all …]
Dparse-ops.mlir7 min = 0.0 : f32, max = 1.0 : f32, num_bits = 8, narrow_range = true
10 min = 0.0 : f32, max = 1.0 : f32, num_bits = 8, narrow_range = false
22 …= [0.0 : f32, 1.0 : f32], max = [2.0 : f32, 3.0 : f32], axis = 2, num_bits = 8, narrow_range = true
25 … [0.0 : f32, 1.0 : f32], max = [2.0 : f32, 3.0 : f32], axis = 2, num_bits = 8, narrow_range = false
/external/tensorflow/tensorflow/lite/toco/graph_transformations/
Dread_array_minmax_and_narrow_range_from_fake_quant.cc43 if (fq_op.narrow_range && !annotated_array.narrow_range) { in ApplyAttrsToArray()
44 annotated_array.narrow_range = true; in ApplyAttrsToArray()
Dremove_trivial_passthrough.cc52 to_array.narrow_range = from_array.narrow_range; in Reroute()
Dresolve_reorder_axes.cc76 if (input_array.narrow_range) { in ReorderAxes()
77 output_array->narrow_range = true; in ReorderAxes()
Dresolve_constant_fake_quant.cc121 if (fakequant_op->narrow_range) { in Run()
123 output_array.narrow_range = true; in Run()
/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/tensorflow/tests/
Dtf_to_quant.mlir7 …%0 = "tf.FakeQuantWithMinMaxVarsPerChannel"(%arg0, %arg1, %arg2) {num_bits = 3, narrow_range = fal…
21 …%0 = "tf.FakeQuantWithMinMaxVars"(%arg0, %arg1, %arg2) {num_bits = 3, narrow_range = false} : (ten…
35 …%0 = "tf.FakeQuantWithMinMaxVars"(%arg0, %arg1, %arg2) {num_bits = 3, narrow_range = false} : (ten…
39 // CHECK: %0 = "tf.FakeQuantWithMinMaxVars"(%arg0, %cst, %cst_0) {narrow_range = false, num_bits =…
51 …%rst = "tf.FakeQuantWithMinMaxVars"(%in, %mini, %maxi) {num_bits = 3, narrow_range = false} : (ten…
63 …%1 = "tf.FakeQuantWithMinMaxVars"(%arg0, %arg3, %arg4) {num_bits = 3, narrow_range = false} : (ten…
78 …%fq = "tf.FakeQuantWithMinMaxVars"(%in, %mini, %maxi) {num_bits = 3, narrow_range = false} : (tens…
97 …%fq = "tf.FakeQuantWithMinMaxVarsPerChannel"(%in, %mini, %maxi) {num_bits = 3, narrow_range = fals…
118 …%fq = "tf.FakeQuantWithMinMaxVars"(%in, %mini, %maxi) {num_bits = 3, narrow_range = false} : (tens…
137 …%fq = "tf.FakeQuantWithMinMaxVarsPerChannel"(%in, %mini, %maxi) {num_bits = 3, narrow_range = fals…
/external/tensorflow/tensorflow/compiler/mlir/tosa/transforms/
Dconvert_tfl_uint8.cc98 bool narrow_range = in matchAndRewrite() local
109 0, true /* signed */, builder.getBoolAttr(narrow_range)))); in matchAndRewrite()
172 bool narrow_range = in convert_graph_uint8_tensor() local
183 0, true /* signed */, builder.getBoolAttr(narrow_range))); in convert_graph_uint8_tensor()
241 bool narrow_range = in convert_graph_uint8_tensor() local
252 0, true /* signed */, builder.getBoolAttr(narrow_range))); in convert_graph_uint8_tensor()
/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/
Dquantization_utils.h96 ConvertStatsToQDQs(int num_bits, bool narrow_range, bool is_signed, in ConvertStatsToQDQs()
100 narrow_range(narrow_range), in ConvertStatsToQDQs()
130 maxs, narrow_range, expressed, is_signed); in matchAndRewrite()
145 narrow_range, expressed, is_signed); in matchAndRewrite()
168 bool narrow_range; member
500 IntegerAttr num_bits, BoolAttr narrow_range,
536 bool narrow_range,
545 bool is_signed, bool narrow_range,
597 int storage_type_width, bool narrow_range, bool is_signed,
Dquantization_utils.cc83 int storage_type_width, bool narrow_range, bool is_signed, in GetQuantizedType() argument
98 effective_maxs[0], narrow_range, converter.expressedType, is_signed); in GetQuantizedType()
113 effective_maxs, narrow_range, converter.expressedType, is_signed); in GetQuantizedType()
157 IntegerAttr num_bits, BoolAttr narrow_range, in GetQuantizedTypeAttr() argument
183 narrow_range.getValue(), is_signed, legacy_float_scale); in GetQuantizedTypeAttr()
322 bool narrow_range, in GetUniformQuantizedTypeForWeight() argument
326 if (symmetric && (!is_signed || !narrow_range)) return {}; in GetUniformQuantizedTypeForWeight()
338 /*quant_dim=*/-1, num_bits, narrow_range, in GetUniformQuantizedTypeForWeight()
348 bool is_signed, bool narrow_range, in GetUniformQuantizedPerAxisTypeForWeight() argument
354 if (symmetric && (!is_signed || !narrow_range)) return {}; in GetUniformQuantizedPerAxisTypeForWeight()
[all …]
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Ddequantize_op.cc45 bool narrow_range; in DequantizeOp() local
52 OP_REQUIRES_OK(ctx, ctx->GetAttr("narrow_range", &narrow_range)); in DequantizeOp()
53 OP_REQUIRES(ctx, narrow_range == false, in DequantizeOp()
Dfake_quantize_ops.cc90 xla::XlaOp input_max, int num_bits, bool narrow_range) { in BuildFakeQuantCustomCall() argument
93 xla::XlaOp narrow_range_arg = narrow_range in BuildFakeQuantCustomCall()
185 bool narrow_range; in FakeQuantWithMinMaxArgsGradOp() local
186 OP_REQUIRES_OK(ctx, ctx->GetAttr("narrow_range", &narrow_range)); in FakeQuantWithMinMaxArgsGradOp()
187 const float quant_min = narrow_range ? 1 : 0; in FakeQuantWithMinMaxArgsGradOp()
283 bool narrow_range; in FakeQuantWithMinMaxVarsGradOp() local
284 OP_REQUIRES_OK(ctx, ctx->GetAttr("narrow_range", &narrow_range)); in FakeQuantWithMinMaxVarsGradOp()
285 quant_min_ = narrow_range ? 1 : 0; in FakeQuantWithMinMaxVarsGradOp()
/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/tensorflow/
Dtf_to_quant.cc111 BoolAttr narrow_range = rewriter.getBoolAttr(tf_op.narrow_range()); in matchAndRewrite() local
115 narrow_range, /*is_signed=*/true); in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/
Dfake_quant.mlir60 …ke_quant"(%arg0) {max = 1.400000e+00 : f32, min = 3.000000e-01 : f32, narrow_range = false, num_bi…
62 …%0 = "tfl.fake_quant"(%arg0) {num_bits = 6 : i32, narrow_range = false, min = 0.3:f32, max = 1.4:f…
/external/llvm-project/mlir/lib/Dialect/Quant/Transforms/
DConvertSimQuant.cpp92 fqOp.max().convertToFloat(), fqOp.narrow_range(), expressedType, in convertFakeQuantAttrsToType()
118 min, max, fqOp.narrow_range(), expressedType, in convertFakeQuantAttrsToType()
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Dprepare_patterns.td82 $input, $min, $max, $num_bits, $narrow_range),
85 $min, $max, $num_bits, $narrow_range)>;
89 $input, $min, $max, $num_bits, $narrow_range),
92 $min, $max, $num_bits, $narrow_range)>;
/external/tensorflow/tensorflow/lite/kernels/internal/
Dquantization_util.h32 bool narrow_range) { in ChooseQuantizationParams() argument
33 const T qmin = std::numeric_limits<T>::min() + (narrow_range ? 1 : 0); in ChooseQuantizationParams()

1234