Home
last modified time | relevance | path

Searched refs:accumulated_min (Results 1 – 25 of 26) sorted by relevance

12

/external/XNNPACK/test/
Dgemm-microkernel-tester.h258 const int32_t accumulated_min = *std::min_element(acc.cbegin(), acc.cend()); variable
260 …e c_scale = uint32_t(accumulated_max - accumulated_min) >= 256 ? double(uint32_t(accumulated_max -…
262 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / c_scale),
388 const int32_t accumulated_min = *std::min_element(acc.cbegin(), acc.cend()); variable
390 …e c_scale = uint32_t(accumulated_max - accumulated_min) >= 256 ? double(uint32_t(accumulated_max -…
392 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / c_scale),
491 const float accumulated_min = *std::min_element(c_ref.cbegin(), c_ref.cend()); variable
493 …fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_min + (accumulated_max - accumulated…
494 …value(fp16_ieee_from_fp32_value(accumulated_max - (accumulated_max - accumulated_min) / 255.0f * f…
565 const float accumulated_min = *std::min_element(c_ref.cbegin(), c_ref.cend()); variable
[all …]
Dfully-connected-operator-tester.h187 const int32_t accumulated_min = *std::min_element(accumulators.cbegin(), accumulators.cend()); in TestQ8() local
190 const double output_scale = double(uint32_t(accumulated_max - accumulated_min)) / 255.0; in TestQ8()
192 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale), in TestQ8()
295 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestF32() local
298 …const float output_min = accumulated_min + (accumulated_max - accumulated_min) / 255.0f * float(qm… in TestF32()
299 …const float output_max = accumulated_max - (accumulated_max - accumulated_min) / 255.0f * float(25… in TestF32()
Dspmm-microkernel-tester.h249 const float accumulated_min = *std::min_element(c_ref.cbegin(), c_ref.cend()); variable
251 …const float c_min = accumulated_min + (accumulated_max - accumulated_min) / 255.0f * float(qmin());
252 …const float c_max = accumulated_max - (accumulated_max - accumulated_min) / 255.0f * float(255 - q…
421 const float accumulated_min = *std::min_element(c_ref.cbegin(), c_ref.cend()); in Test() local
423 …const float c_min = accumulated_min + (accumulated_max - accumulated_min) / 255.0f * float(qmin()); in Test()
424 …const float c_max = accumulated_max - (accumulated_max - accumulated_min) / 255.0f * float(255 - q… in Test()
Dgavgpool-spchw-microkernel-tester.h102 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); variable
104 const float accumulated_range = accumulated_max - accumulated_min;
105 const float y_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range;
Dvunary-microkernel-tester.h108 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); variable
110 const float accumulated_range = accumulated_max - accumulated_min;
115 (accumulated_min + accumulated_range / 255.0f * float(qmin())) :
Dglobal-average-pooling-operator-tester.h241 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestNWCxF32() local
243 const float accumulated_range = accumulated_max - accumulated_min; in TestNWCxF32()
246 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestNWCxF32()
316 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestNCWxF32() local
318 const float accumulated_range = accumulated_max - accumulated_min; in TestNCWxF32()
321 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestNCWxF32()
Ddwconv-microkernel-tester.h201 const int32_t accumulated_min = *std::min_element(accumulators.cbegin(), accumulators.cend()); variable
203 const uint32_t accumulated_range = uint32_t(accumulated_max) - uint32_t(accumulated_min);
206 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale),
298 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); variable
300 const float accumulated_range = accumulated_max - accumulated_min;
301 const float output_min = accumulated_min + accumulated_range / 255.0f * float(qmin());
Davgpool-microkernel-tester.h420 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); variable
422 const float accumulated_range = accumulated_max - accumulated_min;
423 const float y_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range;
499 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); variable
501 const float accumulated_range = accumulated_max - accumulated_min;
502 const float y_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range;
580 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); variable
582 const float accumulated_range = accumulated_max - accumulated_min;
583 const float y_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range;
660 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); variable
[all …]
Dargmaxpool-microkernel-tester.h205 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); variable
207 const float accumulated_range = accumulated_max - accumulated_min;
208 const float output_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range;
308 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); variable
310 const float accumulated_range = accumulated_max - accumulated_min;
311 const float output_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range;
Dvbinary-microkernel-tester.h137 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); variable
139 const float accumulated_range = accumulated_max - accumulated_min;
144 (accumulated_min + accumulated_range / 255.0f * float(qmin())) :
Dvbinaryc-microkernel-tester.h134 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); variable
136 const float accumulated_range = accumulated_max - accumulated_min;
141 (accumulated_min + accumulated_range / 255.0f * float(qmin())) :
Dprelu-microkernel-tester.h144 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); variable
146 const float accumulated_range = accumulated_max - accumulated_min;
148 …-std::numeric_limits<float>::infinity() : accumulated_min + accumulated_range / 255.0f * float(qmi…
Dprelu-operator-tester.h123 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); in TestF32() local
125 const float accumulated_range = accumulated_max - accumulated_min; in TestF32()
127 …-std::numeric_limits<float>::infinity() : accumulated_min + accumulated_range / 255.0f * float(qmi… in TestF32()
Dgavgpool-microkernel-tester.h318 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); variable
320 const float accumulated_range = accumulated_max - accumulated_min;
321 const float y_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range;
385 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); variable
387 const float accumulated_range = accumulated_max - accumulated_min;
388 const float y_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range;
Dvmulcaddc-microkernel-tester.h155 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); variable
157 const float accumulated_range = accumulated_max - accumulated_min;
159 const float y_min = accumulated_min + accumulated_range / 255.0f * float(qmin());
Dconvolution-operator-tester.h631 const int32_t accumulated_min = *std::min_element(accumulators.cbegin(), accumulators.cend()); in TestNHWCxQ8() local
634 const double output_scale = double(uint32_t(accumulated_max - accumulated_min)) / 255.0; in TestNHWCxQ8()
636 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale), in TestNHWCxQ8()
791 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestNHWCxF32() local
794 …const float output_min = accumulated_min + (accumulated_max - accumulated_min) / 255.0f * float(qm… in TestNHWCxF32()
795 …const float output_max = accumulated_max - (accumulated_max - accumulated_min) / 255.0f * float(25… in TestNHWCxF32()
957 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestNCHWxF32() local
960 …const float output_min = accumulated_min + (accumulated_max - accumulated_min) / 255.0f * float(qm… in TestNCHWxF32()
961 …const float output_max = accumulated_max - (accumulated_max - accumulated_min) / 255.0f * float(25… in TestNCHWxF32()
1097 const int32_t accumulated_min = *std::min_element(accumulators.cbegin(), accumulators.cend()); in TestSetupNHWCxQ8() local
[all …]
Ddeconvolution-operator-tester.h499 const int32_t accumulated_min = *std::min_element(accumulators.cbegin(), accumulators.cend()); in TestQ8() local
502 const double output_scale = double(uint32_t(accumulated_max - accumulated_min)) / 255.0; in TestQ8()
504 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale), in TestQ8()
633 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestF32() local
636 …const float output_min = accumulated_min + (accumulated_max - accumulated_min) / 255.0f * float(qm… in TestF32()
637 …const float output_max = accumulated_max - (accumulated_max - accumulated_min) / 255.0f * float(25… in TestF32()
771 const int32_t accumulated_min = *std::min_element(accumulators.cbegin(), accumulators.cend()); in TestSetupQ8() local
774 const double output_scale = double(uint32_t(accumulated_max - accumulated_min)) / 255.0; in TestSetupQ8()
776 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale), in TestSetupQ8()
994 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestSetupF32() local
[all …]
Dconv-hwc-microkernel-tester.h352 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); variable
355 …const float output_min = accumulated_min + (accumulated_max - accumulated_min) / 255.0f * float(qm…
356 …const float output_max = accumulated_max - (accumulated_max - accumulated_min) / 255.0f * float(25…
Dconv-hwc2spchw-microkernel-tester.h352 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); variable
355 …const float output_min = accumulated_min + (accumulated_max - accumulated_min) / 255.0f * float(qm…
356 …const float output_max = accumulated_max - (accumulated_max - accumulated_min) / 255.0f * float(25…
Ddwconv-spchw-microkernel-tester.h262 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); variable
264 const float accumulated_range = accumulated_max - accumulated_min;
265 const float output_min = accumulated_min + accumulated_range / 255.0f * float(qmin());
Dargmax-pooling-operator-tester.h335 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestF32() local
337 const float accumulated_range = accumulated_max - accumulated_min; in TestF32()
340 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestF32()
451 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestSetupF32() local
453 const float accumulated_range = accumulated_max - accumulated_min; in TestSetupF32()
456 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestSetupF32()
Dadd-operator-tester.h266 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); in TestF32() local
268 const float accumulated_range = accumulated_max - accumulated_min; in TestF32()
270 …-std::numeric_limits<float>::infinity() : accumulated_min + accumulated_range / 255.0f * float(qmi… in TestF32()
Dmaxpool-microkernel-tester.h267 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); variable
269 const float accumulated_range = accumulated_max - accumulated_min;
270 const float output_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range;
Dbinary-elementwise-operator-tester.h201 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestF32() local
203 const float accumulated_range = accumulated_max - accumulated_min; in TestF32()
205 …-std::numeric_limits<float>::infinity() : accumulated_min + accumulated_range / 255.0f * float(qmi… in TestF32()
Dmax-pooling-operator-tester.h511 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestF32() local
513 const float accumulated_range = accumulated_max - accumulated_min; in TestF32()
516 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestF32()
752 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestSetupF32() local
754 const float accumulated_range = accumulated_max - accumulated_min; in TestSetupF32()
757 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestSetupF32()

12