Home
last modified time | relevance | path

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

/external/XNNPACK/test/
Dvmulcaddc-microkernel-tester.h159 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); variable
161 const float accumulated_range = accumulated_max - accumulated_min;
163 …const float y_min = fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_min + accumulate…
228 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); variable
230 const float accumulated_range = accumulated_max - accumulated_min;
232 const float y_min = accumulated_min + accumulated_range / 255.0f * float(qmin());
Dgemm-microkernel-tester.h259 const int32_t accumulated_min = *std::min_element(acc.cbegin(), acc.cend()); variable
261 …e c_scale = uint32_t(accumulated_max - accumulated_min) >= 256 ? double(uint32_t(accumulated_max -…
263 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / c_scale),
384 const int32_t accumulated_min = *std::min_element(acc.cbegin(), acc.cend()); variable
386 …e c_scale = uint32_t(accumulated_max - accumulated_min) >= 256 ? double(uint32_t(accumulated_max -…
388 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / c_scale),
481 const int32_t accumulated_min = *std::min_element(acc.cbegin(), acc.cend()); variable
483 …e c_scale = uint32_t(accumulated_max - accumulated_min) >= 256 ? double(uint32_t(accumulated_max -…
485 lrint(-0.5 - 0.5 * double(accumulated_min + accumulated_max) / c_scale),
574 const int32_t accumulated_min = *std::min_element(acc.cbegin(), acc.cend()); variable
[all …]
Dfully-connected-operator-tester.h188 const int32_t accumulated_min = *std::min_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()
296 const float accumulated_min = *std::min_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.h318 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestNWCxF16() local
320 const float accumulated_range = accumulated_max - accumulated_min; in TestNWCxF16()
321 …const float scaled_min = fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_min + accum… in TestNWCxF16()
395 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestNWCxF32() local
397 const float accumulated_range = accumulated_max - accumulated_min; in TestNWCxF32()
400 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestNWCxF32()
474 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestNCWxF32() local
476 const float accumulated_range = accumulated_max - accumulated_min; in TestNCWxF32()
479 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestNCWxF32()
Dgavgpool-cw-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;
Dspmm-microkernel-tester.h265 const float accumulated_min = *std::min_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…
439 const float accumulated_min = *std::min_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.h480 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); variable
482 const float accumulated_range = accumulated_max - accumulated_min;
483 …const float output_min = fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_min + float…
541 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); variable
543 const float accumulated_range = accumulated_max - accumulated_min;
544 …const float output_min = fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_min + float…
603 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); variable
605 const float accumulated_range = accumulated_max - accumulated_min;
606 const float output_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range;
670 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); variable
[all …]
Ddwconv-microkernel-tester.h230 const int32_t accumulated_min = *std::min_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),
343 const int32_t accumulated_min = *std::min_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),
448 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); variable
450 const float accumulated_range = accumulated_max - accumulated_min;
451 …const float output_min = fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_min + accum…
608 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); variable
[all …]
Davgpool-microkernel-tester.h459 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); variable
461 const float accumulated_range = accumulated_max - accumulated_min;
462 const float output_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range;
556 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); variable
558 const float accumulated_range = accumulated_max - accumulated_min;
559 const float output_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range;
655 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); variable
657 const float accumulated_range = accumulated_max - accumulated_min;
658 const float output_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range;
753 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); variable
[all …]
Dvbinaryc-microkernel-tester.h209 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); in Test() local
211 const float accumulated_range = accumulated_max - accumulated_min; in Test()
216 (accumulated_min + accumulated_range / 255.0f * float(qmin())) : in Test()
355 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); variable
357 const float accumulated_range = accumulated_max - accumulated_min;
362 (accumulated_min + accumulated_range / 255.0f * float(qmin())) :
Dconvolution-operator-tester.h604 const int32_t accumulated_min = *std::min_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()
772 const int32_t accumulated_min = *std::min_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()
936 const float accumulated_min = *std::min_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()
1096 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestNHWCxF16() local
[all …]
Ddwconv2d-microkernel-tester.h207 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); variable
209 const float accumulated_range = accumulated_max - accumulated_min;
210 const float output_min = accumulated_min + accumulated_range / 255.0f * float(qmin());
Dvbinary-microkernel-tester.h210 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); in Test() local
212 const float accumulated_range = accumulated_max - accumulated_min; in Test()
217 (accumulated_min + accumulated_range / 255.0f * float(qmin())) : in Test()
349 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); variable
351 const float accumulated_range = accumulated_max - accumulated_min;
356 (accumulated_min + accumulated_range / 255.0f * float(qmin())) :
Ddeconvolution-operator-tester.h555 const int32_t accumulated_min = *std::min_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()
691 const float accumulated_min = *std::min_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()
833 const int32_t accumulated_min = *std::min_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()
1056 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestSetupF32() local
[all …]
Dconv-hwc2chw-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-hwc-microkernel-tester.h346 const float accumulated_min = *std::min_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.h268 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); variable
270 const float accumulated_range = accumulated_max - accumulated_min;
271 const float output_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range;
Dbinary-elementwise-operator-tester.h411 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestF16() local
413 const float accumulated_range = accumulated_max - accumulated_min; in TestF16()
414 …const float scaled_min = fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_min + accum… in TestF16()
560 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestF32() local
562 const float accumulated_range = accumulated_max - accumulated_min; in TestF32()
564 …-std::numeric_limits<float>::infinity() : accumulated_min + accumulated_range / 255.0f * float(qmi… in TestF32()
Daverage-pooling-operator-tester.h568 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestF32() local
570 const float accumulated_range = accumulated_max - accumulated_min; in TestF32()
573 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestF32()
814 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestSetupF32() local
816 const float accumulated_range = accumulated_max - accumulated_min; in TestSetupF32()
819 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestSetupF32()
Dmax-pooling-operator-tester.h568 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestF32() local
570 const float accumulated_range = accumulated_max - accumulated_min; in TestF32()
573 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestF32()
811 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestSetupF32() local
813 const float accumulated_range = accumulated_max - accumulated_min; in TestSetupF32()
816 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestSetupF32()