/external/tensorflow/tensorflow/lite/tools/optimize/calibration/ |
calibration_logger.h | 25 class MinMax { 73 const std::unordered_map<int, MinMax>& GetCalibrationValues() const { 78 std::unordered_map<int, MinMax> tensor_id_to_stats_map_;
|
/external/gemmlowp/meta/ |
transform_kernels.h | 48 struct MinMax { 126 class Transform1DKernel<InType, OutType, MinMax<Type>, kernel_size, leftovers> { 128 static void Transform(const InType* in, const MinMax<Type>& params, 132 std::cout << "MinMax::Transform(" << std::string(typeid(InType).name()) 137 std::cerr << "FATAL: MinMax::Transform not implemented." << std::endl; 218 class Transform1DUtil<InType, OutType, MinMax<MinMaxType>> { 220 static int EstimateComputeCost(const MinMax<MinMaxType>& params) { 224 static const InType* OffsetInput(const MinMax<MinMaxType>& params, 229 static OutType* OffsetOutput(const MinMax<MinMaxType>& params,
|
transform_kernels_arm_32.h | [all...] |
transform_kernels_arm_64.h | [all...] |
test_transform_correctness.cc | 39 typedef Transform1DParams<std::uint8_t, std::uint8_t, MinMax<std::uint8_t>> MinMaxParams; 143 std::cout << "MinMax: OK" << std::endl;
|
/external/tensorflow/tensorflow/lite/toco/graph_transformations/ |
resolve_fake_quant_args_from_vars.cc | 39 if (fakequant_op->minmax) { 58 fakequant_op->minmax.reset(new MinMax); 59 MinMax& minmax = *fakequant_op->minmax; local 60 minmax.min = min_array.GetBuffer<ArrayDataType::kFloat>().data[0]; 61 minmax.max = max_array.GetBuffer<ArrayDataType::kFloat>().data[0]; 63 if (minmax.min > 0 || minmax.max < 0) [all...] |
read_array_minmax_and_narrow_range_from_fake_quant.cc | 35 if (!annotated_array.minmax) { 36 const MinMax& minmax = *fq_op.minmax; local 37 annotated_array.GetOrCreateMinMax() = minmax; 40 minmax.min, minmax.max); 64 if (!fq_op->minmax) { 69 // At this point, this FakeQuantOperator should have a MinMax 72 CHECK(fq_op->minmax); [all...] |
hardcode_min_max.cc | 34 if (im2col_array.minmax) { 38 if (!input_array.minmax) { 42 CHECK(!im2col_array.minmax); 51 if (output_array.minmax) { 55 if (!input_array.minmax) { 59 CHECK(!output_array.minmax); 68 if (input.minmax) { 69 const auto* minmax = input.minmax.get(); local 70 if (minmax) { 76 const auto* minmax = model->GetArray(op->outputs[0]).minmax.get(); local 94 const auto* minmax = model->GetArray(input).minmax.get(); local 104 const auto* minmax = model->GetArray(op->outputs[0]).minmax.get(); local 341 auto& minmax = input_activations.GetOrCreateMinMax(); local 350 auto& minmax = prev_output_activations.GetOrCreateMinMax(); local 359 auto& minmax = output_concat_temp.GetOrCreateMinMax(); local 368 auto& minmax = output_activations.GetOrCreateMinMax(); local 385 auto& minmax = output_activations_temp.GetOrCreateMinMax(); local [all...] |
graph_transformations.h | 223 MinMax minmax; local 224 minmax.min = min; 225 minmax.max = max; 226 type_ranges_.emplace_back(data_type, minmax); 231 std::vector<std::pair<ArrayDataType, MinMax>> type_ranges_;
|
propagate_fake_quant_num_bits.cc | 32 const MinMax* new_minmax) { 40 if (array->minmax && array->quantization_params) { 56 // Compute new minmax values. 80 if (!array->minmax && new_minmax) { 81 transformation->AddMessageF("Forcing new minmax to %g,%g (%s)", 154 const MinMax& new_minmax) { 273 // quantize.cc about minmax ranges being determined by the contents of constant 305 const auto& final_minmax = *fakequant_op->minmax;
|
resolve_constant_concatenation.cc | 113 // If the minmax is already set, use it 114 if (concatenated_array->minmax) return; 120 // If any of the input arrays minmax is not set, return. 121 // TODO(ghodrat): shall we add the logic to compute the minmax? 122 if (!input_array->minmax) return; 123 const MinMax& input_minmax = input_array->GetMinMax(); 127 MinMax& minmax = concatenated_array->GetOrCreateMinMax(); local 128 minmax.min = concat_min; 129 minmax.max = concat_max [all...] |
quantize.cc | 83 const MinMax& GetOrComputeMinMax(Model* model, const string& array_name) { 85 // Normally we should have a MinMax recorded on this Array, 87 if (array.minmax != nullptr) { 88 return *array.minmax; 91 // We don't have a MinMax. That's bad news: we need 92 // the graph to provide MinMax info for all arrays in order 102 // lacks some minmax information. 130 << " lacks MinMax information. To make up for that, we will now " 132 << " the MinMax from actual array elements. That will result in" 139 auto& minmax = array.GetOrCreateMinMax() local 239 const MinMax& minmax = GetOrComputeMinMax(model, input); local 387 const MinMax& minmax = GetOrComputeMinMax(model, output); local [all...] |
dequantize.cc | 119 // If there was no minmax info, we can return now. Indeed, 121 // quantized without MinMax (see the CHECK above) and that corresponds to 125 if (!array->minmax) { 160 fakequant_op->minmax.reset(new MinMax); 161 *fakequant_op->minmax = array->GetMinMax();
|
/external/harfbuzz_ng/src/ |
hb-ot-layout-base-table.hh | 185 * of MinMax table (may be NULL) */ 189 * of MinMax table (may be NULL) */ 195 struct MinMax 229 * of MinMax table (may be NULL) */ 233 * of MinMax table (may be NULL) */ 283 const MinMax &get_min_max () const 284 { return this+minMax; } 290 minMax.sanitize (c, this))); 295 OffsetTo<MinMax> 296 minMax; /* Offset to MinMax table, from beginnin [all...] |
/external/tensorflow/tensorflow/lite/toco/ |
model.h | 921 struct MinMax { 926 inline bool operator==(const MinMax& m1, const MinMax& m2) { 931 // - Annotate its input and output arrays with MinMax information, 934 // values from the min to the max value dictated by its MinMax info. 946 std::unique_ptr<MinMax> minmax; member in struct:toco::FakeQuantOperator 2215 std::unique_ptr<MinMax> minmax; member in struct:toco::Array [all...] |
/external/v8/src/asmjs/ |
asm-types.cc | 233 auto* MinMax = new (zone) AsmMinMaxType(dest, src); 234 return reinterpret_cast<AsmType*>(MinMax);
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
sanitizer_printf_test.cc | 118 TEST(Printf, MinMax) {
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-xray/ |
xray-account.cpp | 237 auto MinMax = std::minmax_element(Timings.begin(), Timings.end()); 238 R.Min = *MinMax.first; 239 R.Max = *MinMax.second;
|
/external/tensorflow/tensorflow/lite/toco/tflite/ |
import.cc | 85 MinMax& minmax = array.GetOrCreateMinMax(); local 86 minmax.min = quantization->min()->Get(0); 87 minmax.max = quantization->max()->Get(0);
|
/external/tensorflow/tensorflow/contrib/lite/kernels/internal/ |
types.h | 683 struct MinMax { 687 static_assert(sizeof(MinMax) == 8, ""); 809 MinMax minmax; member in struct:tflite::FakeQuantParams
|
/external/tensorflow/tensorflow/lite/kernels/internal/ |
types.h | 699 struct MinMax { 703 static_assert(sizeof(MinMax) == 8, ""); 833 MinMax minmax; member in struct:tflite::FakeQuantParams [all...] |
/external/tensorflow/tensorflow/core/kernels/ |
meta_support.cc | 390 gemmlowp::meta::MinMax<uint8_t>>
|
/external/gemmlowp/meta/generators/ |
transform_kernels_common.py | 46 emitter.EmitComment('MinMax::Prepare') 59 """Generate the MinMax transform inner loop code.""" 61 emitter.EmitComment('MinMax::Transform') 383 class MinMax(BaseTransform): 387 BaseTransform.__init__(self, cc_emitter, 'MinMax<%s>' % numerical_type, 571 minmax = MinMax('uint8_t', cc_emitter, asm_emitter) 586 minmax.SpecializeTransform1DKernel('uint8_t', 'uint8_t', shape[0], shape[1])
|
/external/v8/src/arm/ |
simulator-arm.cc | [all...] |
/external/swiftshader/src/Reactor/ |
ReactorUnitTests.cpp | 457 TEST(ReactorUnitTests, MinMax)
|