Home
last modified time | relevance | path

Searched refs:accumulated_max (Results 1 – 20 of 20) sorted by relevance

/external/XNNPACK/test/
Dvmulcaddc-microkernel-tester.h160 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); variable
161 const float accumulated_range = accumulated_max - accumulated_min;
162 …const float y_max = fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_max - accumulate…
229 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); variable
230 const float accumulated_range = accumulated_max - accumulated_min;
231 const float y_max = accumulated_max - accumulated_range / 255.0f * float(255 - qmax());
Dgemm-microkernel-tester.h260 const int32_t accumulated_max = *std::max_element(acc.cbegin(), acc.cend()); variable
261 …const double c_scale = uint32_t(accumulated_max - accumulated_min) >= 256 ? double(uint32_t(accumu…
263 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / c_scale),
385 const int32_t accumulated_max = *std::max_element(acc.cbegin(), acc.cend()); variable
386 …const double c_scale = uint32_t(accumulated_max - accumulated_min) >= 256 ? double(uint32_t(accumu…
388 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / c_scale),
482 const int32_t accumulated_max = *std::max_element(acc.cbegin(), acc.cend()); variable
483 …const double c_scale = uint32_t(accumulated_max - accumulated_min) >= 256 ? double(uint32_t(accumu…
485 lrint(-0.5 - 0.5 * double(accumulated_min + accumulated_max) / c_scale),
575 const int32_t accumulated_max = *std::max_element(acc.cbegin(), acc.cend()); variable
[all …]
Dfully-connected-operator-tester.h189 const int32_t accumulated_max = *std::max_element(accumulators.cbegin(), accumulators.cend()); in TestQU8() local
191 const double output_scale = double(uint32_t(accumulated_max - accumulated_min)) / 255.0; in TestQU8()
193 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale), in TestQU8()
297 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestF32() local
300 accumulated_min + (accumulated_max - accumulated_min) / 255.0f * float(qmin()); in TestF32()
302 accumulated_max - (accumulated_max - accumulated_min) / 255.0f * float(255 - qmax()); in TestF32()
Dglobal-average-pooling-operator-tester.h319 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestNWCxF16() local
320 const float accumulated_range = accumulated_max - accumulated_min; in TestNWCxF16()
322 …const float scaled_max = fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_max - accum… in TestNWCxF16()
396 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestNWCxF32() local
397 const float accumulated_range = accumulated_max - accumulated_min; in TestNWCxF32()
403 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestNWCxF32()
475 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestNCWxF32() local
476 const float accumulated_range = accumulated_max - accumulated_min; in TestNCWxF32()
482 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestNCWxF32()
Dgavgpool-cw-microkernel-tester.h103 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); variable
104 const float accumulated_range = accumulated_max - accumulated_min;
106 const float y_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range;
Dspmm-microkernel-tester.h266 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); variable
267 …const float output_min = accumulated_min + (accumulated_max - accumulated_min) / 255.0f * float(qm…
268 …const float output_max = accumulated_max - (accumulated_max - accumulated_min) / 255.0f * float(25…
440 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in Test() local
441 …const float output_min = accumulated_min + (accumulated_max - accumulated_min) / 255.0f * float(qm… in Test()
442 …const float output_max = accumulated_max - (accumulated_max - accumulated_min) / 255.0f * float(25… in Test()
Dgavgpool-microkernel-tester.h481 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); variable
482 const float accumulated_range = accumulated_max - accumulated_min;
484 …const float output_max = fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_max - float…
542 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); variable
543 const float accumulated_range = accumulated_max - accumulated_min;
545 …const float output_max = fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_max - float…
604 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); variable
605 const float accumulated_range = accumulated_max - accumulated_min;
607 const float output_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range;
671 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); variable
[all …]
Ddwconv-microkernel-tester.h231 const int32_t accumulated_max = *std::max_element(accumulators.cbegin(), accumulators.cend()); variable
232 const uint32_t accumulated_range = uint32_t(accumulated_max) - uint32_t(accumulated_min);
235 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale),
344 const int32_t accumulated_max = *std::max_element(accumulators.cbegin(), accumulators.cend()); variable
345 const uint32_t accumulated_range = uint32_t(accumulated_max) - uint32_t(accumulated_min);
348 lrint(-0.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale),
449 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); variable
450 const float accumulated_range = accumulated_max - accumulated_min;
452 …const float output_max = fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_max - accum…
609 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); variable
[all …]
Davgpool-microkernel-tester.h460 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); variable
461 const float accumulated_range = accumulated_max - accumulated_min;
463 const float output_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range;
557 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); variable
558 const float accumulated_range = accumulated_max - accumulated_min;
560 const float output_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range;
656 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); variable
657 const float accumulated_range = accumulated_max - accumulated_min;
659 const float output_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range;
754 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); variable
[all …]
Dvbinaryc-microkernel-tester.h210 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); in Test() local
211 const float accumulated_range = accumulated_max - accumulated_min; in Test()
213 (accumulated_max - accumulated_range / 255.0f * float(255 - qmax())) : in Test()
356 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); variable
357 const float accumulated_range = accumulated_max - accumulated_min;
359 (accumulated_max - accumulated_range / 255.0f * float(255 - qmax())) :
Dconvolution-operator-tester.h605 const int32_t accumulated_max = *std::max_element(accumulators.cbegin(), accumulators.cend()); in TestNHWCxQS8() local
607 const double output_scale = double(uint32_t(accumulated_max - accumulated_min)) / 255.0; in TestNHWCxQS8()
609 lrint(-0.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale), in TestNHWCxQS8()
773 const int32_t accumulated_max = *std::max_element(accumulators.cbegin(), accumulators.cend()); in TestNHWCxQU8() local
775 const double output_scale = double(uint32_t(accumulated_max - accumulated_min)) / 255.0; in TestNHWCxQU8()
777 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale), in TestNHWCxQU8()
937 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestNHWCxF32() local
939 …const float output_min = accumulated_min + (accumulated_max - accumulated_min) / 255.0f * float(qm… in TestNHWCxF32()
940 …const float output_max = accumulated_max - (accumulated_max - accumulated_min) / 255.0f * float(25… in TestNHWCxF32()
1097 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestNHWCxF16() local
[all …]
Ddwconv2d-microkernel-tester.h208 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); variable
209 const float accumulated_range = accumulated_max - accumulated_min;
211 const float output_max = accumulated_max - accumulated_range / 255.0f * float(255 - qmax());
Dvbinary-microkernel-tester.h211 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); in Test() local
212 const float accumulated_range = accumulated_max - accumulated_min; in Test()
214 (accumulated_max - accumulated_range / 255.0f * float(255 - qmax())) : in Test()
350 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); variable
351 const float accumulated_range = accumulated_max - accumulated_min;
353 (accumulated_max - accumulated_range / 255.0f * float(255 - qmax())) :
Ddeconvolution-operator-tester.h556 const int32_t accumulated_max = *std::max_element(accumulators.cbegin(), accumulators.cend()); in TestQU8() local
558 const double output_scale = double(uint32_t(accumulated_max - accumulated_min)) / 255.0; in TestQU8()
560 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale), in TestQU8()
692 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestF32() local
695 accumulated_min + (accumulated_max - accumulated_min) / 255.0f * float(qmin()); in TestF32()
697 accumulated_max - (accumulated_max - accumulated_min) / 255.0f * float(255 - qmax()); in TestF32()
834 const int32_t accumulated_max = *std::max_element(accumulators.cbegin(), accumulators.cend()); in TestSetupQU8() local
836 const double output_scale = double(uint32_t(accumulated_max - accumulated_min)) / 255.0; in TestSetupQU8()
838 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale), in TestSetupQU8()
1057 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestSetupF32() local
[all …]
Dconv-hwc2chw-microkernel-tester.h353 const float accumulated_max = *std::max_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-hwc-microkernel-tester.h347 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); variable
349 …const float output_min = accumulated_min + (accumulated_max - accumulated_min) / 255.0f * float(qm…
350 …const float output_max = accumulated_max - (accumulated_max - accumulated_min) / 255.0f * float(25…
Dmaxpool-microkernel-tester.h269 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); variable
270 const float accumulated_range = accumulated_max - accumulated_min;
272 const float output_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range;
Dbinary-elementwise-operator-tester.h412 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestF16() local
413 const float accumulated_range = accumulated_max - accumulated_min; in TestF16()
415 …const float scaled_max = fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_max - accum… in TestF16()
561 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestF32() local
562 const float accumulated_range = accumulated_max - accumulated_min; in TestF32()
566 …+std::numeric_limits<float>::infinity() : accumulated_max - accumulated_range / 255.0f * float(255… in TestF32()
Daverage-pooling-operator-tester.h569 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestF32() local
570 const float accumulated_range = accumulated_max - accumulated_min; in TestF32()
576 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestF32()
815 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestSetupF32() local
816 const float accumulated_range = accumulated_max - accumulated_min; in TestSetupF32()
822 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestSetupF32()
Dmax-pooling-operator-tester.h569 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestF32() local
570 const float accumulated_range = accumulated_max - accumulated_min; in TestF32()
576 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestF32()
812 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestSetupF32() local
813 const float accumulated_range = accumulated_max - accumulated_min; in TestSetupF32()
819 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestSetupF32()