Home
last modified time | relevance | path

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

12

/external/XNNPACK/test/
Dgemm-microkernel-tester.h259 const int32_t accumulated_max = *std::max_element(acc.cbegin(), acc.cend()); variable
260 …const double c_scale = uint32_t(accumulated_max - accumulated_min) >= 256 ? double(uint32_t(accumu…
262 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / c_scale),
389 const int32_t accumulated_max = *std::max_element(acc.cbegin(), acc.cend()); variable
390 …const double c_scale = uint32_t(accumulated_max - accumulated_min) >= 256 ? double(uint32_t(accumu…
392 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / c_scale),
492 const float accumulated_max = *std::max_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 … c_max = fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_max - (accumulated_max - ac…
566 const float accumulated_max = *std::max_element(c_ref.cbegin(), c_ref.cend()); variable
[all …]
Dfully-connected-operator-tester.h188 const int32_t accumulated_max = *std::max_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()
296 const float accumulated_max = *std::max_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.h250 const float accumulated_max = *std::max_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…
422 const float accumulated_max = *std::max_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.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;
Dvunary-microkernel-tester.h109 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); variable
110 const float accumulated_range = accumulated_max - accumulated_min;
112 (accumulated_max - accumulated_range / 255.0f * float(255 - qmax())) :
Dglobal-average-pooling-operator-tester.h242 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestNWCxF32() local
243 const float accumulated_range = accumulated_max - accumulated_min; in TestNWCxF32()
249 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestNWCxF32()
317 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestNCWxF32() local
318 const float accumulated_range = accumulated_max - accumulated_min; in TestNCWxF32()
324 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestNCWxF32()
Ddwconv-microkernel-tester.h202 const int32_t accumulated_max = *std::max_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),
299 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); variable
300 const float accumulated_range = accumulated_max - accumulated_min;
302 const float output_max = accumulated_max - accumulated_range / 255.0f * float(255 - qmax());
Davgpool-microkernel-tester.h421 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); variable
422 const float accumulated_range = accumulated_max - accumulated_min;
424 const float y_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range;
500 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); variable
501 const float accumulated_range = accumulated_max - accumulated_min;
503 const float y_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range;
581 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); variable
582 const float accumulated_range = accumulated_max - accumulated_min;
584 const float y_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range;
661 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); variable
[all …]
Dargmaxpool-microkernel-tester.h206 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); variable
207 const float accumulated_range = accumulated_max - accumulated_min;
209 const float output_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range;
309 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); variable
310 const float accumulated_range = accumulated_max - accumulated_min;
312 const float output_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range;
Dvbinary-microkernel-tester.h138 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); variable
139 const float accumulated_range = accumulated_max - accumulated_min;
141 (accumulated_max - accumulated_range / 255.0f * float(255 - qmax())) :
Dvbinaryc-microkernel-tester.h135 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); variable
136 const float accumulated_range = accumulated_max - accumulated_min;
138 (accumulated_max - accumulated_range / 255.0f * float(255 - qmax())) :
Dprelu-microkernel-tester.h145 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); variable
146 const float accumulated_range = accumulated_max - accumulated_min;
150 …+std::numeric_limits<float>::infinity() : accumulated_max - accumulated_range / 255.0f * float(255…
Dprelu-operator-tester.h124 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); in TestF32() local
125 const float accumulated_range = accumulated_max - accumulated_min; in TestF32()
129 …+std::numeric_limits<float>::infinity() : accumulated_max - accumulated_range / 255.0f * float(255… in TestF32()
Dgavgpool-microkernel-tester.h319 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); variable
320 const float accumulated_range = accumulated_max - accumulated_min;
322 const float y_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range;
386 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); variable
387 const float accumulated_range = accumulated_max - accumulated_min;
389 const float y_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range;
Dvmulcaddc-microkernel-tester.h156 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); variable
157 const float accumulated_range = accumulated_max - accumulated_min;
158 const float y_max = accumulated_max - accumulated_range / 255.0f * float(255 - qmax());
Dconvolution-operator-tester.h632 const int32_t accumulated_max = *std::max_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()
792 const float accumulated_max = *std::max_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()
958 const float accumulated_max = *std::max_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()
1098 const int32_t accumulated_max = *std::max_element(accumulators.cbegin(), accumulators.cend()); in TestSetupNHWCxQ8() local
[all …]
Ddeconvolution-operator-tester.h500 const int32_t accumulated_max = *std::max_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()
634 const float accumulated_max = *std::max_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()
772 const int32_t accumulated_max = *std::max_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()
995 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestSetupF32() local
[all …]
Dconv-hwc-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-hwc2spchw-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…
Ddwconv-spchw-microkernel-tester.h263 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); variable
264 const float accumulated_range = accumulated_max - accumulated_min;
266 const float output_max = accumulated_max - accumulated_range / 255.0f * float(255 - qmax());
Dargmax-pooling-operator-tester.h336 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestF32() local
337 const float accumulated_range = accumulated_max - accumulated_min; in TestF32()
343 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestF32()
452 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestSetupF32() local
453 const float accumulated_range = accumulated_max - accumulated_min; in TestSetupF32()
459 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestSetupF32()
Dadd-operator-tester.h267 const float accumulated_max = *std::max_element(y_ref.cbegin(), y_ref.cend()); in TestF32() local
268 const float accumulated_range = accumulated_max - accumulated_min; in TestF32()
272 …+std::numeric_limits<float>::infinity() : accumulated_max - accumulated_range / 255.0f * float(255… in TestF32()
Dmaxpool-microkernel-tester.h268 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); variable
269 const float accumulated_range = accumulated_max - accumulated_min;
271 const float output_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range;
Dbinary-elementwise-operator-tester.h202 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestF32() local
203 const float accumulated_range = accumulated_max - accumulated_min; in TestF32()
207 …+std::numeric_limits<float>::infinity() : accumulated_max - accumulated_range / 255.0f * float(255… in TestF32()
Dmax-pooling-operator-tester.h512 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestF32() local
513 const float accumulated_range = accumulated_max - accumulated_min; in TestF32()
519 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestF32()
753 const float accumulated_max = *std::max_element(output_ref.cbegin(), output_ref.cend()); in TestSetupF32() local
754 const float accumulated_range = accumulated_max - accumulated_min; in TestSetupF32()
760 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestSetupF32()

12