Home
last modified time | relevance | path

Searched refs:values (Results 1 – 25 of 30) sorted by relevance

12

/tflite-micro-3.4.0-2.7.6/tensorflow/lite/micro/kernels/
Dquantize_test.cc128 const float values[] = {-63.5, -63, -62.5, -62, -61.5, in TF_LITE_MICRO_TEST() local
135 dims, values, dims, values, values_quantized, scale, zero_point, output); in TF_LITE_MICRO_TEST()
141 const float values[] = {-128, -127, -126, -125, -124, in TF_LITE_MICRO_TEST() local
148 dims, values, dims, values, values_quantized, scale, zero_point, output); in TF_LITE_MICRO_TEST()
154 const float values[] = {-64, -62, -60, -58, -56, 54, 56, 58, 60, 62}; in TF_LITE_MICRO_TEST() local
162 tflite::testing::TestRequantize(dims, values, input_quantized, input_scale, in TF_LITE_MICRO_TEST()
163 input_zero_point, dims, values, in TF_LITE_MICRO_TEST()
171 const float values[] = {-32, -31, -30, -29, -28, 27, 28, 29, 30, 31}; in TF_LITE_MICRO_TEST() local
179 tflite::testing::TestRequantize(dims, values, input_quantized, input_scale, in TF_LITE_MICRO_TEST()
180 input_zero_point, dims, values, in TF_LITE_MICRO_TEST()
[all …]
Ddequantize_test.cc106 const float values[] = {-63.5, -63, -62.5, -62, -61.5, in TF_LITE_MICRO_TEST() local
112 tflite::testing::TestDequantizeToFloat(dims, values, input_quantized, scale, in TF_LITE_MICRO_TEST()
113 zero_point, dims, values, output); in TF_LITE_MICRO_TEST()
119 const float values[] = {-63.5, -63, -62.5, -62, -61.5, in TF_LITE_MICRO_TEST() local
125 tflite::testing::TestDequantizeToFloat(dims, values, input_quantized, scale, in TF_LITE_MICRO_TEST()
126 zero_point, dims, values, output); in TF_LITE_MICRO_TEST()
132 const float values[] = {-63.5, -63, -62.5, -62, -61.5, in TF_LITE_MICRO_TEST() local
138 tflite::testing::TestDequantizeToFloat(dims, values, input_quantized, scale, in TF_LITE_MICRO_TEST()
139 zero_point, dims, values, output); in TF_LITE_MICRO_TEST()
Ddetection_postprocess.cc345 void DecreasingPartialArgSort(const float* values, int num_values, in DecreasingPartialArgSort() argument
350 [&values](const int i, const int j) { return values[i] > values[j]; }); in DecreasingPartialArgSort()
353 int SelectDetectionsAboveScoreThreshold(const float* values, int size, in SelectDetectionsAboveScoreThreshold() argument
358 if (values[i] >= threshold) { in SelectDetectionsAboveScoreThreshold()
359 keep_values[counter] = values[i]; in SelectDetectionsAboveScoreThreshold()
/tflite-micro-3.4.0-2.7.6/.github/assets/
Dwrite_json.py11 def write_json(output_file, values): argument
13 json_dict = {values[0]: values[1]}
23 if args.values[0] == 'random': args.values[1] = random.randrange(1000)
24 write_json(args.file, args.values)
/tflite-micro-3.4.0-2.7.6/tensorflow/lite/micro/
Dmicro_utils_test.cc88 float values[] = {-10.3, -3.1, -2.1, -1.9, -0.9, 0.1, 0.9, 1.85, 2.9, 4.1}; in TF_LITE_MICRO_TEST() local
90 constexpr int length = sizeof(values) / sizeof(float); in TF_LITE_MICRO_TEST()
92 tflite::Quantize(values, quantized, length, 0.5, 1); in TF_LITE_MICRO_TEST()
99 float values[] = {-10.3, -3.1, -2.1, -1.9, -0.9, 0.1, 0.9, 1.85, 2.9, 4.1}; in TF_LITE_MICRO_TEST() local
101 constexpr int length = sizeof(values) / sizeof(float); in TF_LITE_MICRO_TEST()
103 tflite::Quantize(values, quantized, length, 0.5, 127); in TF_LITE_MICRO_TEST()
110 float values[] = {-10.3, -3.1, -2.1, -1.9, -0.9, 0.1, 0.9, 1.85, 2.9, 4.1}; in TF_LITE_MICRO_TEST() local
112 constexpr int length = sizeof(values) / sizeof(float); in TF_LITE_MICRO_TEST()
114 tflite::SymmetricQuantize(values, quantized, length, 0.5); in TF_LITE_MICRO_TEST()
Dmicro_utils.h97 void SignedSymmetricPerChannelQuantize(const float* values,
106 void SymmetricQuantizeCalculateScales(const float* values, TfLiteIntArray* dims, in SymmetricQuantizeCalculateScales() argument
113 min = fminf(min, values[i]); in SymmetricQuantizeCalculateScales()
114 max = fmaxf(max, values[i]); in SymmetricQuantizeCalculateScales()
119 static_cast<int32_t>(roundf(values[i] / *scale)); in SymmetricQuantizeCalculateScales()
128 void Dequantize(const T* values, const int size, const float scale, in Dequantize() argument
131 dequantized_values[i] = (values[i] - zero_point) * scale; in Dequantize()
Dmicro_utils.cc36 void SignedSymmetricPerChannelQuantize(const float* values, in SignedSymmetricPerChannelQuantize() argument
65 min = fminf(min, values[idx]); in SignedSymmetricPerChannelQuantize()
66 max = fmaxf(max, values[idx]); in SignedSymmetricPerChannelQuantize()
73 static_cast<int32_t>(roundf(values[idx] / scaling_factors[channel])); in SignedSymmetricPerChannelQuantize()
/tflite-micro-3.4.0-2.7.6/tensorflow/lite/micro/examples/micro_speech/apollo3/
Dcaptured_data_to_wav.py41 values = np.array(new_data_to_array(data)).astype(float) variable
46 wav = values / np.max(np.abs(values))
/tflite-micro-3.4.0-2.7.6/tensorflow/lite/experimental/microfrontend/lib/
Dfrontend_memmap_main.c48 if (output.values != NULL) { in main()
51 printf("%d ", output.values[i]); in main()
Dfrontend_main.c58 if (output.values != NULL) { in main()
61 printf("%d ", output.values[i]); in main()
Dfrontend_test.cc74 TF_LITE_MICRO_EXPECT_EQ(output.values[i], expected[i]); in TF_LITE_MICRO_TEST()
99 TF_LITE_MICRO_EXPECT_EQ(output.values[i], expected[i]); in TF_LITE_MICRO_TEST()
126 TF_LITE_MICRO_EXPECT(output.values == nullptr); in TF_LITE_MICRO_TEST()
Dfrontend.c24 output.values = NULL; in FrontendProcessSamples()
63 output.values = logged_filterbank; in FrontendProcessSamples()
Dfilterbank_io.c17 static void PrintArray(FILE* fp, const char* name, const int16_t* values, in PrintArray() argument
22 fprintf(fp, "%d", values[i]); in PrintArray()
Dfrontend.h42 const uint16_t* values; member
DREADME.md4 input, and produces filter banks (a vector of values).
34 printf("%d ", output.values[i]); // Print the feature vector.
41 a feature vector, the returned size will be 0 and the values pointer will be
/tflite-micro-3.4.0-2.7.6/tensorflow/lite/micro/memory_planner/
Dgreedy_memory_planner.cc43 void ReverseSortInPlace(int* values, int* ids, int size) { in ReverseSortInPlace() argument
48 if (values[i - 1] < values[i]) { in ReverseSortInPlace()
49 const int value_temp = values[i - 1]; in ReverseSortInPlace()
50 values[i - 1] = values[i]; in ReverseSortInPlace()
51 values[i] = value_temp; in ReverseSortInPlace()
Dgreedy_memory_planner_test.cc24 void ReverseSortInPlace(int* values, int* ids, int size);
/tflite-micro-3.4.0-2.7.6/third_party/flatbuffers/
DBUILD.bazel11 values = {"cpu": "freebsd"},
16 values = {"cpu": "x64_windows"},
/tflite-micro-3.4.0-2.7.6/tensorflow/lite/micro/tools/make/ext_libs/
Dstm32_bare_lib.patch11 -// supported on many microcontrollers) and as a consequence prints values with
28 -// supported on many microcontrollers) and as a consequence prints values with
64 - // values in this array.
/tflite-micro-3.4.0-2.7.6/tensorflow/lite/micro/examples/micro_speech/micro_features/
Dmicro_features_generator.cc103 ((frontend_output.values[i] * value_scale) + (value_div / 2)) / in GenerateMicroFeatures()
/tflite-micro-3.4.0-2.7.6/tensorflow/lite/micro/kernels/vexriscv/doc/
DDepthwiseConv2D_int8.md136 integer model, accumulating intermediate values at the output tensor will cause
137 overflow: the product of two `int8` values is in the range of `int16` and there
138 are `H * W` values to be accumulated, the range of the value before quantization
145 array with size equals to the output tensor to accumulate the values.
235 those `C` values and store them into the output tensor. However, we are running
/tflite-micro-3.4.0-2.7.6/tensorflow/lite/micro/tools/make/targets/
Dhexagon_makefile.inc15 # without providing a version. Valid values may vary depending on tools
/tflite-micro-3.4.0-2.7.6/tensorflow/lite/schema/
Dschema_generated.h434 static const TensorType values[] = { in EnumValuesTensorType() local
452 return values; in EnumValuesTensorType()
492 static const QuantizationDetails values[] = { in EnumValuesQuantizationDetails() local
496 return values; in EnumValuesQuantizationDetails()
565 …erifier &verifier, const flatbuffers::Vector<flatbuffers::Offset<void>> *values, const flatbuffers…
575 static const DimensionType values[] = {
579 return values;
607 static const SparseIndexVector values[] = {
613 return values;
708 …erifier &verifier, const flatbuffers::Vector<flatbuffers::Offset<void>> *values, const flatbuffers…
[all …]
/tflite-micro-3.4.0-2.7.6/tensorflow/lite/micro/examples/person_detection/
Dtraining_a_model.md158 pixel values from 0 to 255 integers into -1.0 to +1.0 floating point numbers
169 values we found through experimentation for this particular model. You can
199 partially-trained model's predictions are to the correct values, and lower
200 values are better. This will show a lot of variation but should on average
311 constants, after loading their values from a checkpoint file. The command below
441 filtered by one or more rectangular filters to produce intermediate values.
442 These values are then combined using pointwise convolutions. This dramatically
/tflite-micro-3.4.0-2.7.6/tensorflow/lite/micro/examples/micro_speech/train/
DREADME.md137 input samples are treated as being between -1 and +1 as real values (encoded as
142 The results are stored as unsigned eight-bit values, where 0 represents a real

12