Home
last modified time | relevance | path

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

/external/XNNPACK/test/
Dgavgpool-cw-microkernel-tester.h105 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); variable
106 const float accumulated_range = accumulated_max - accumulated_min;
108 const float y_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range;
166 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); in Test() local
167 const float accumulated_range = accumulated_max - accumulated_min; in Test()
169 …const float y_max = fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_max - accumulate… in Test()
Dgemm-microkernel-tester.cc76 const int32_t accumulated_max = *std::max_element(acc.cbegin(), acc.cend()); in Test() local
77 …const double c_scale = uint32_t(accumulated_max - accumulated_min) >= 256 ? double(uint32_t(accumu… in Test()
79 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / c_scale), in Test()
196 const int32_t accumulated_max = *std::max_element(acc.cbegin(), acc.cend()); in Test() local
197 …const double c_scale = uint32_t(accumulated_max - accumulated_min) >= 256 ? double(uint32_t(accumu… in Test()
199 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / c_scale), in Test()
301 int32_t accumulated_max = acc[n_index]; in Test() local
304 accumulated_max = std::max(accumulated_max, acc[m_index * n() + n_index]); in Test()
306 const uint32_t accumulated_range = uint32_t(accumulated_max - accumulated_min); in Test()
443 int32_t accumulated_max = acc[n_index]; in Test() local
[all …]
Davgpool-microkernel-tester.h251 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in Test() local
252 const float accumulated_range = accumulated_max - accumulated_min; in Test()
254 … float output_max_as_float = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range; in Test()
343 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in Test() local
344 const float accumulated_range = accumulated_max - accumulated_min; in Test()
346 … float output_max_as_float = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range; in Test()
434 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in Test() local
435 const float accumulated_range = accumulated_max - accumulated_min; in Test()
437 const float output_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range; in Test()
522 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in Test() local
[all …]
Ddwconv2d-microkernel-tester.h209 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); variable
210 const float accumulated_range = accumulated_max - accumulated_min;
212 const float output_max = accumulated_max - accumulated_range / 255.0f * float(255 - qmax());
286 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in Test() local
287 const float accumulated_range = accumulated_max - accumulated_min; in Test()
289 …const float output_max = fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_max - accum… in Test()
Dvmulcaddc-microkernel-tester.h154 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); in Test() local
155 const float accumulated_range = accumulated_max - accumulated_min; in Test()
156 …const float y_max = fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_max - accumulate… in Test()
222 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); in Test() local
223 const float accumulated_range = accumulated_max - accumulated_min; in Test()
224 const float y_max = accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in Test()
Dglobal-average-pooling-operator-tester.h318 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestNWCxF16() local
319 const float accumulated_range = accumulated_max - accumulated_min; in TestNWCxF16()
321 …const float scaled_max = fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_max - accum… in TestNWCxF16()
395 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestNWCxF32() local
396 const float accumulated_range = accumulated_max - accumulated_min; in TestNWCxF32()
402 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestNWCxF32()
474 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestNCWxF32() local
475 const float accumulated_range = accumulated_max - accumulated_min; in TestNCWxF32()
481 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestNCWxF32()
Ddwconv-microkernel-tester.h231 const int32_t accumulated_max = *std::max_element(accumulators.cbegin(), accumulators.cend()); in Test() local
232 const uint32_t accumulated_range = uint32_t(accumulated_max) - uint32_t(accumulated_min); in Test()
235 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale), in Test()
345 int32_t accumulated_max = accumulators[c]; in Test() local
348 accumulated_max = std::max(accumulated_max, accumulators[x * channels() + c]); in Test()
350 const uint32_t accumulated_range = uint32_t(accumulated_max - accumulated_min); in Test()
462 const int32_t accumulated_max = *std::max_element(accumulators.cbegin(), accumulators.cend()); in Test() local
463 const uint32_t accumulated_range = uint32_t(accumulated_max) - uint32_t(accumulated_min); in Test()
466 lrint(-0.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale), in Test()
558 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in Test() local
[all …]
Dgavgpool-microkernel-tester.h440 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in Test() local
441 const float accumulated_range = accumulated_max - accumulated_min; in Test()
443 …const float output_max = fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_max - float… in Test()
501 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in Test() local
502 const float accumulated_range = accumulated_max - accumulated_min; in Test()
504 …const float output_max = fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_max - float… in Test()
564 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in Test() local
565 const float accumulated_range = accumulated_max - accumulated_min; in Test()
567 const float output_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range; in Test()
622 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in Test() local
[all …]
Dspmm-microkernel-tester.h260 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in Test() local
261 …const float output_min = accumulated_min + (accumulated_max - accumulated_min) / 255.0f * float(qm… in Test()
262 …const float output_max = accumulated_max - (accumulated_max - accumulated_min) / 255.0f * float(25… in Test()
426 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in Test() local
427 …const float output_min = accumulated_min + (accumulated_max - accumulated_min) / 255.0f * float(qm… in Test()
428 …const float output_max = accumulated_max - (accumulated_max - accumulated_min) / 255.0f * float(25… in Test()
Dfully-connected-operator-tester.h219 const int32_t accumulated_max = *std::max_element(accumulators.cbegin(), accumulators.cend()); in TestQS8() local
221 const double output_scale = double(uint32_t(accumulated_max - accumulated_min)) / 255.0; in TestQS8()
223 lrint(-0.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale), in TestQS8()
400 const int32_t accumulated_max = *std::max_element(accumulators.cbegin(), accumulators.cend()); in TestQU8() local
402 const double output_scale = double(uint32_t(accumulated_max - accumulated_min)) / 255.0; in TestQU8()
404 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale), in TestQU8()
570 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestF32() local
573 accumulated_min + (accumulated_max - accumulated_min) / 255.0f * float(qmin()); in TestF32()
575 accumulated_max - (accumulated_max - accumulated_min) / 255.0f * float(255 - qmax()); in TestF32()
745 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestF16() local
[all …]
Dconv-hwc2chw-microkernel-tester.h354 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); variable
356 …const float output_min = accumulated_min + (accumulated_max - accumulated_min) / 255.0f * float(qm…
357 …const float output_max = accumulated_max - (accumulated_max - accumulated_min) / 255.0f * float(25…
469 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in Test() local
470 const float accumulated_range = accumulated_max - accumulated_min; in Test()
472 …const float output_max = fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_max - accum… in Test()
Dconvolution-operator-tester.h634 int32_t accumulated_max = accumulators[c]; in TestNHWCxQC8() local
637accumulated_max = std::max(accumulated_max, accumulators[px * groups() * group_output_channels() +… in TestNHWCxQC8()
641 if (accumulated_max != 0) { in TestNHWCxQC8()
643 …nt32_t(std::numeric_limits<int8_t>::max()) - int32_t(output_zero_point)) / float(accumulated_max)); in TestNHWCxQC8()
869 const int32_t accumulated_max = *std::max_element(accumulators.cbegin(), accumulators.cend()); in TestNHWCxQS8() local
871 const double output_scale = double(uint32_t(accumulated_max - accumulated_min)) / 255.0; in TestNHWCxQS8()
873 lrint(-0.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale), in TestNHWCxQS8()
1106 const int32_t accumulated_max = *std::max_element(accumulators.cbegin(), accumulators.cend()); in TestNHWCxQU8() local
1108 const double output_scale = double(uint32_t(accumulated_max - accumulated_min)) / 255.0; in TestNHWCxQU8()
1110 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale), in TestNHWCxQU8()
[all …]
Dvbinaryc-microkernel-tester.h203 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); in Test() local
204 const float accumulated_range = accumulated_max - accumulated_min; in Test()
206 (accumulated_max - accumulated_range / 255.0f * float(255 - qmax())) : in Test()
426 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); in Test() local
427 const float accumulated_range = accumulated_max - accumulated_min; in Test()
429 (accumulated_max - accumulated_range / 255.0f * float(255 - qmax())) : in Test()
Ddeconvolution-operator-tester.h522 const int32_t accumulated_max = *std::max_element(accumulators.cbegin(), accumulators.cend()); in TestQS8() local
524 const double output_scale = double(uint32_t(accumulated_max - accumulated_min)) / 255.0; in TestQS8()
526 lrint(-0.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale), in TestQS8()
725 const int32_t accumulated_max = *std::max_element(accumulators.cbegin(), accumulators.cend()); in TestQU8() local
727 const double output_scale = double(uint32_t(accumulated_max - accumulated_min)) / 255.0; in TestQU8()
729 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale), in TestQU8()
929 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestF16() local
930 const float accumulated_range = accumulated_max - accumulated_min; in TestF16()
932 float output_max = accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestF16()
1140 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestF32() local
[all …]
Dvbinary-microkernel-tester.h204 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); in Test() local
205 const float accumulated_range = accumulated_max - accumulated_min; in Test()
207 (accumulated_max - accumulated_range / 255.0f * float(255 - qmax())) : in Test()
415 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); in Test() local
416 const float accumulated_range = accumulated_max - accumulated_min; in Test()
418 (accumulated_max - accumulated_range / 255.0f * float(255 - qmax())) : in Test()
Dconv-hwc-microkernel-tester.h346 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); variable
348 …const float output_min = accumulated_min + (accumulated_max - accumulated_min) / 255.0f * float(qm…
349 …const float output_max = accumulated_max - (accumulated_max - accumulated_min) / 255.0f * float(25…
Dconvolution-2d.cc465 int32_t accumulated_max = accumulators[c]; in TEST_F() local
468accumulated_max = std::max(accumulated_max, accumulators[px * groups * group_output_channels + c]); in TEST_F()
472 if (accumulated_max != 0) { in TEST_F()
475 …nt32_t(std::numeric_limits<int8_t>::max()) - int32_t(output_zero_point)) / float(accumulated_max)); in TEST_F()
605 const int32_t accumulated_max = *std::max_element(accumulators.cbegin(), accumulators.cend()); in TEST_F() local
607 float output_scale = double(uint32_t(accumulated_max - accumulated_min)) / 255.0; in TEST_F()
610 lrint(-0.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale), in TEST_F()
737 const int32_t accumulated_max = *std::max_element(accumulators.cbegin(), accumulators.cend()); in TEST_F() local
739 const double output_scale = double(uint32_t(accumulated_max - accumulated_min)) / 255.0; in TEST_F()
742 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale), in TEST_F()
Ddepthwise-convolution-2d.cc488 int32_t accumulated_max = accumulators[c]; in TEST_F() local
491accumulated_max = std::max(accumulated_max, accumulators[px * input_channels * depth_multiplier + … in TEST_F()
495 if (accumulated_max != 0) { in TEST_F()
498 …nt32_t(std::numeric_limits<int8_t>::max()) - int32_t(output_zero_point)) / float(accumulated_max)); in TEST_F()
632 const int32_t accumulated_max = *std::max_element(accumulators.cbegin(), accumulators.cend()); in TEST_F() local
634 float output_scale = double(uint32_t(accumulated_max - accumulated_min)) / 255.0; in TEST_F()
637 lrint(-0.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale), in TEST_F()
764 const int32_t accumulated_max = *std::max_element(accumulators.cbegin(), accumulators.cend()); in TEST_F() local
766 const double output_scale = double(uint32_t(accumulated_max - accumulated_min)) / 255.0; in TEST_F()
769 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale), in TEST_F()
Dmaxpool-microkernel-tester.h337 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in Test() local
338 const float accumulated_range = accumulated_max - accumulated_min; in Test()
345 float output_max = accumulated_max - accumulated_range * in Test()
426 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in Test() local
427 const float accumulated_range = accumulated_max - accumulated_min; in Test()
434 float output_max = accumulated_max - accumulated_range * in Test()
Daverage-pooling-operator-tester.h486 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestF16() local
487 const float accumulated_range = accumulated_max - accumulated_min; in TestF16()
489 float output_max = accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestF16()
594 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestF32() local
595 const float accumulated_range = accumulated_max - accumulated_min; in TestF32()
601 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestF32()
780 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestSetupF16() local
781 const float accumulated_range = accumulated_max - accumulated_min; in TestSetupF16()
783 float output_max = accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestSetupF16()
950 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestSetupF32() local
[all …]
Dfully-connected.cc316 const int32_t accumulated_max = *std::max_element(accumulators.cbegin(), accumulators.cend()); in TEST_F() local
318 float output_scale = double(uint32_t(accumulated_max - accumulated_min)) / 255.0; in TEST_F()
321 lrint(-0.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale), in TEST_F()
426 const int32_t accumulated_max = *std::max_element(accumulators.cbegin(), accumulators.cend()); in TEST_F() local
428 const double output_scale = double(uint32_t(accumulated_max - accumulated_min)) / 255.0; in TEST_F()
431 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale), in TEST_F()
Dmax-pooling-operator-tester.h657 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestF16() local
658 const float accumulated_range = accumulated_max - accumulated_min; in TestF16()
660 float output_max = accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestF16()
767 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestF32() local
768 const float accumulated_range = accumulated_max - accumulated_min; in TestF32()
774 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestF32()
1154 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestSetupF16() local
1155 const float accumulated_range = accumulated_max - accumulated_min; in TestSetupF16()
1157 float output_max = accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestSetupF16()
1323 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestSetupF32() local
[all …]
Ddeconvolution-2d.cc421 const int32_t accumulated_max = *std::max_element(accumulators.cbegin(), accumulators.cend()); in TEST_F() local
423 float output_scale = double(uint32_t(accumulated_max - accumulated_min)) / 255.0; in TEST_F()
426 lrint(-0.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale), in TEST_F()
562 const int32_t accumulated_max = *std::max_element(accumulators.cbegin(), accumulators.cend()); in TEST_F() local
564 const double output_scale = double(uint32_t(accumulated_max - accumulated_min)) / 255.0; in TEST_F()
567 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / output_scale), in TEST_F()
Dbinary-elementwise-operator-tester.h630 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestF16() local
631 const float accumulated_range = accumulated_max - accumulated_min; in TestF16()
633 …const float scaled_max = fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_max - accum… in TestF16()
849 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestF32() local
850 const float accumulated_range = accumulated_max - accumulated_min; in TestF32()
854 …+std::numeric_limits<float>::infinity() : accumulated_max - accumulated_range / 255.0f * float(255… in TestF32()