Home
last modified time | relevance | path

Searched refs:accumulated_range (Results 1 – 19 of 19) sorted by relevance

/external/XNNPACK/test/
Dvunary-microkernel-tester.h110 const float accumulated_range = accumulated_max - accumulated_min; variable
111 const float y_max = accumulated_range > 0.0f ?
112 (accumulated_max - accumulated_range / 255.0f * float(255 - qmax())) :
114 const float y_min = accumulated_range > 0.0f ?
115 (accumulated_min + accumulated_range / 255.0f * float(qmin())) :
Dglobal-average-pooling-operator-tester.h243 const float accumulated_range = accumulated_max - accumulated_min; in TestNWCxF32() local
244 const float output_min = accumulated_range == 0.0f ? in TestNWCxF32()
246 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestNWCxF32()
247 const float output_max = accumulated_range == 0.0f ? in TestNWCxF32()
249 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestNWCxF32()
318 const float accumulated_range = accumulated_max - accumulated_min; in TestNCWxF32() local
319 const float output_min = accumulated_range == 0.0f ? in TestNCWxF32()
321 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestNCWxF32()
322 const float output_max = accumulated_range == 0.0f ? in TestNCWxF32()
324 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestNCWxF32()
Dvbinary-microkernel-tester.h139 const float accumulated_range = accumulated_max - accumulated_min; variable
140 const float y_max = accumulated_range > 0.0f ?
141 (accumulated_max - accumulated_range / 255.0f * float(255 - qmax())) :
143 const float y_min = accumulated_range > 0.0f ?
144 (accumulated_min + accumulated_range / 255.0f * float(qmin())) :
Dvbinaryc-microkernel-tester.h136 const float accumulated_range = accumulated_max - accumulated_min; variable
137 const float y_max = accumulated_range > 0.0f ?
138 (accumulated_max - accumulated_range / 255.0f * float(255 - qmax())) :
140 const float y_min = accumulated_range > 0.0f ?
141 (accumulated_min + accumulated_range / 255.0f * float(qmin())) :
Dprelu-microkernel-tester.h146 const float accumulated_range = accumulated_max - accumulated_min; variable
147 const float y_min = accumulated_range == 0.0f ?
148 …-std::numeric_limits<float>::infinity() : accumulated_min + accumulated_range / 255.0f * float(qmi…
149 const float y_max = accumulated_range == 0.0f ?
150 …+std::numeric_limits<float>::infinity() : accumulated_max - accumulated_range / 255.0f * float(255…
Dprelu-operator-tester.h125 const float accumulated_range = accumulated_max - accumulated_min; in TestF32() local
126 const float y_min = accumulated_range == 0.0f ? in TestF32()
127 …-std::numeric_limits<float>::infinity() : accumulated_min + accumulated_range / 255.0f * float(qmi… in TestF32()
128 const float y_max = accumulated_range == 0.0f ? in TestF32()
129 …+std::numeric_limits<float>::infinity() : accumulated_max - accumulated_range / 255.0f * float(255… in TestF32()
Dgavgpool-spchw-microkernel-tester.h104 const float accumulated_range = accumulated_max - accumulated_min; variable
105 const float y_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range;
106 const float y_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range;
Dargmax-pooling-operator-tester.h337 const float accumulated_range = accumulated_max - accumulated_min; in TestF32() local
338 const float output_min = accumulated_range == 0.0f ? in TestF32()
340 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestF32()
341 const float output_max = accumulated_range == 0.0f ? in TestF32()
343 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestF32()
453 const float accumulated_range = accumulated_max - accumulated_min; in TestSetupF32() local
454 const float output_min = accumulated_range == 0.0f ? in TestSetupF32()
456 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestSetupF32()
457 const float output_max = accumulated_range == 0.0f ? in TestSetupF32()
459 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestSetupF32()
Ddwconv-microkernel-tester.h203 const uint32_t accumulated_range = uint32_t(accumulated_max) - uint32_t(accumulated_min); variable
204 …const double output_scale = accumulated_range >= 256 ? double(accumulated_range) / 255.0 : 1.00001;
300 const float accumulated_range = accumulated_max - accumulated_min; variable
301 const float output_min = accumulated_min + accumulated_range / 255.0f * float(qmin());
302 const float output_max = accumulated_max - accumulated_range / 255.0f * float(255 - qmax());
Davgpool-microkernel-tester.h422 const float accumulated_range = accumulated_max - accumulated_min; variable
423 const float y_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range;
424 const float y_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range;
501 const float accumulated_range = accumulated_max - accumulated_min; variable
502 const float y_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range;
503 const float y_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range;
582 const float accumulated_range = accumulated_max - accumulated_min; variable
583 const float y_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range;
584 const float y_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range;
662 const float accumulated_range = accumulated_max - accumulated_min; variable
[all …]
Dargmaxpool-microkernel-tester.h207 const float accumulated_range = accumulated_max - accumulated_min; variable
208 const float output_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range;
209 const float output_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range;
310 const float accumulated_range = accumulated_max - accumulated_min; variable
311 const float output_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range;
312 const float output_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range;
Dgavgpool-microkernel-tester.h320 const float accumulated_range = accumulated_max - accumulated_min; variable
321 const float y_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range;
322 const float y_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range;
387 const float accumulated_range = accumulated_max - accumulated_min; variable
388 const float y_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range;
389 const float y_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range;
Dvmulcaddc-microkernel-tester.h157 const float accumulated_range = accumulated_max - accumulated_min; variable
158 const float y_max = accumulated_max - accumulated_range / 255.0f * float(255 - qmax());
159 const float y_min = accumulated_min + accumulated_range / 255.0f * float(qmin());
Dmax-pooling-operator-tester.h513 const float accumulated_range = accumulated_max - accumulated_min; in TestF32() local
514 const float output_min = accumulated_range == 0.0f ? in TestF32()
516 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestF32()
517 const float output_max = accumulated_range == 0.0f ? in TestF32()
519 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestF32()
754 const float accumulated_range = accumulated_max - accumulated_min; in TestSetupF32() local
755 const float output_min = accumulated_range == 0.0f ? in TestSetupF32()
757 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestSetupF32()
758 const float output_max = accumulated_range == 0.0f ? in TestSetupF32()
760 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestSetupF32()
Daverage-pooling-operator-tester.h514 const float accumulated_range = accumulated_max - accumulated_min; in TestF32() local
515 const float output_min = accumulated_range == 0.0f ? in TestF32()
517 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestF32()
518 const float output_max = accumulated_range == 0.0f ? in TestF32()
520 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestF32()
760 const float accumulated_range = accumulated_max - accumulated_min; in TestSetupF32() local
761 const float output_min = accumulated_range == 0.0f ? in TestSetupF32()
763 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestSetupF32()
764 const float output_max = accumulated_range == 0.0f ? in TestSetupF32()
766 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestSetupF32()
Ddwconv-spchw-microkernel-tester.h264 const float accumulated_range = accumulated_max - accumulated_min; variable
265 const float output_min = accumulated_min + accumulated_range / 255.0f * float(qmin());
266 const float output_max = accumulated_max - accumulated_range / 255.0f * float(255 - qmax());
Dadd-operator-tester.h268 const float accumulated_range = accumulated_max - accumulated_min; in TestF32() local
270 …-std::numeric_limits<float>::infinity() : accumulated_min + accumulated_range / 255.0f * float(qmi… in TestF32()
272 …+std::numeric_limits<float>::infinity() : accumulated_max - accumulated_range / 255.0f * float(255… in TestF32()
Dmaxpool-microkernel-tester.h269 const float accumulated_range = accumulated_max - accumulated_min; variable
270 const float output_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range;
271 const float output_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range;
Dbinary-elementwise-operator-tester.h203 const float accumulated_range = accumulated_max - accumulated_min; in TestF32() local
205 …-std::numeric_limits<float>::infinity() : accumulated_min + accumulated_range / 255.0f * float(qmi… in TestF32()
207 …+std::numeric_limits<float>::infinity() : accumulated_max - accumulated_range / 255.0f * float(255… in TestF32()