/external/XNNPACK/test/ |
D | global-average-pooling-operator-tester.h | 320 const float accumulated_range = accumulated_max - accumulated_min; in TestNWCxF16() local 321 …fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_min + accumulated_range / 255.0f * f… in TestNWCxF16() 322 …fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_max - accumulated_range / 255.0f * f… in TestNWCxF16() 397 const float accumulated_range = accumulated_max - accumulated_min; in TestNWCxF32() local 398 const float output_min = accumulated_range == 0.0f ? in TestNWCxF32() 400 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestNWCxF32() 401 const float output_max = accumulated_range == 0.0f ? in TestNWCxF32() 403 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestNWCxF32() 476 const float accumulated_range = accumulated_max - accumulated_min; in TestNCWxF32() local 477 const float output_min = accumulated_range == 0.0f ? in TestNCWxF32() [all …]
|
D | vbinaryc-microkernel-tester.h | 211 const float accumulated_range = accumulated_max - accumulated_min; in Test() local 212 … const float y_max = fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_range > 0.0f ? in Test() 213 (accumulated_max - accumulated_range / 255.0f * float(255 - qmax())) : in Test() 215 … const float y_min = fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_range > 0.0f ? in Test() 216 (accumulated_min + accumulated_range / 255.0f * float(qmin())) : in Test() 357 const float accumulated_range = accumulated_max - accumulated_min; variable 358 const float y_max = accumulated_range > 0.0f ? 359 (accumulated_max - accumulated_range / 255.0f * float(255 - qmax())) : 361 const float y_min = accumulated_range > 0.0f ? 362 (accumulated_min + accumulated_range / 255.0f * float(qmin())) :
|
D | vmulcaddc-microkernel-tester.h | 161 const float accumulated_range = accumulated_max - accumulated_min; variable 162 …fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_max - accumulated_range / 255.0f * f… 163 …fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_min + accumulated_range / 255.0f * f… 230 const float accumulated_range = accumulated_max - accumulated_min; variable 231 const float y_max = accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); 232 const float y_min = accumulated_min + accumulated_range / 255.0f * float(qmin());
|
D | vbinary-microkernel-tester.h | 212 const float accumulated_range = accumulated_max - accumulated_min; in Test() local 213 … const float y_max = fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_range > 0.0f ? in Test() 214 (accumulated_max - accumulated_range / 255.0f * float(255 - qmax())) : in Test() 216 … const float y_min = fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_range > 0.0f ? in Test() 217 (accumulated_min + accumulated_range / 255.0f * float(qmin())) : in Test() 351 const float accumulated_range = accumulated_max - accumulated_min; variable 352 const float y_max = accumulated_range > 0.0f ? 353 (accumulated_max - accumulated_range / 255.0f * float(255 - qmax())) : 355 const float y_min = accumulated_range > 0.0f ? 356 (accumulated_min + accumulated_range / 255.0f * float(qmin())) :
|
D | gavgpool-cw-microkernel-tester.h | 104 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;
|
D | gavgpool-microkernel-tester.h | 482 const float accumulated_range = accumulated_max - accumulated_min; variable 483 …p32_value(fp16_ieee_from_fp32_value(accumulated_min + float(qmin()) / 255.0f * accumulated_range)); 484 …lue(fp16_ieee_from_fp32_value(accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range)); 543 const float accumulated_range = accumulated_max - accumulated_min; variable 544 …p32_value(fp16_ieee_from_fp32_value(accumulated_min + float(qmin()) / 255.0f * accumulated_range)); 545 …lue(fp16_ieee_from_fp32_value(accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range)); 605 const float accumulated_range = accumulated_max - accumulated_min; variable 606 const float output_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range; 607 const float output_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range; 672 const float accumulated_range = accumulated_max - accumulated_min; variable [all …]
|
D | dwconv-microkernel-tester.h | 232 const uint32_t accumulated_range = uint32_t(accumulated_max) - uint32_t(accumulated_min); variable 233 …const double output_scale = accumulated_range >= 256 ? double(accumulated_range) / 255.0 : 1.00001; 345 const uint32_t accumulated_range = uint32_t(accumulated_max) - uint32_t(accumulated_min); variable 346 …const double output_scale = accumulated_range >= 256 ? double(accumulated_range) / 255.0 : 1.00001; 450 const float accumulated_range = accumulated_max - accumulated_min; variable 451 …fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_min + accumulated_range / 255.0f * f… 452 …fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_max - accumulated_range / 255.0f * f… 610 const float accumulated_range = accumulated_max - accumulated_min; variable 611 const float output_min = accumulated_min + accumulated_range / 255.0f * float(qmin()); 612 const float output_max = accumulated_max - accumulated_range / 255.0f * float(255 - qmax());
|
D | avgpool-microkernel-tester.h | 461 const float accumulated_range = accumulated_max - accumulated_min; variable 462 const float output_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range; 463 const float output_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range; 558 const float accumulated_range = accumulated_max - accumulated_min; variable 559 const float output_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range; 560 const float output_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range; 657 const float accumulated_range = accumulated_max - accumulated_min; variable 658 const float output_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range; 659 const float output_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range; 755 const float accumulated_range = accumulated_max - accumulated_min; variable [all …]
|
D | dwconv2d-microkernel-tester.h | 209 const float accumulated_range = accumulated_max - accumulated_min; variable 210 const float output_min = accumulated_min + accumulated_range / 255.0f * float(qmin()); 211 const float output_max = accumulated_max - accumulated_range / 255.0f * float(255 - qmax());
|
D | average-pooling-operator-tester.h | 570 const float accumulated_range = accumulated_max - accumulated_min; in TestF32() local 571 const float output_min = accumulated_range == 0.0f ? in TestF32() 573 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestF32() 574 const float output_max = accumulated_range == 0.0f ? in TestF32() 576 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestF32() 816 const float accumulated_range = accumulated_max - accumulated_min; in TestSetupF32() local 817 const float output_min = accumulated_range == 0.0f ? in TestSetupF32() 819 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestSetupF32() 820 const float output_max = accumulated_range == 0.0f ? in TestSetupF32() 822 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestSetupF32()
|
D | max-pooling-operator-tester.h | 570 const float accumulated_range = accumulated_max - accumulated_min; in TestF32() local 571 const float output_min = accumulated_range == 0.0f ? in TestF32() 573 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestF32() 574 const float output_max = accumulated_range == 0.0f ? in TestF32() 576 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestF32() 813 const float accumulated_range = accumulated_max - accumulated_min; in TestSetupF32() local 814 const float output_min = accumulated_range == 0.0f ? in TestSetupF32() 816 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestSetupF32() 817 const float output_max = accumulated_range == 0.0f ? in TestSetupF32() 819 accumulated_max - accumulated_range / 255.0f * float(255 - qmax()); in TestSetupF32()
|
D | maxpool-microkernel-tester.h | 270 const float accumulated_range = accumulated_max - accumulated_min; variable 271 const float output_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range; 272 const float output_max = accumulated_max - float(255 - qmax()) / 255.0f * accumulated_range;
|
D | binary-elementwise-operator-tester.h | 413 const float accumulated_range = accumulated_max - accumulated_min; in TestF16() local 414 …fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_min + accumulated_range / 255.0f * f… in TestF16() 415 …fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_max - accumulated_range / 255.0f * f… in TestF16() 562 const float accumulated_range = accumulated_max - accumulated_min; in TestF32() local 564 …-std::numeric_limits<float>::infinity() : accumulated_min + accumulated_range / 255.0f * float(qmi… in TestF32() 566 …+std::numeric_limits<float>::infinity() : accumulated_max - accumulated_range / 255.0f * float(255… in TestF32()
|
D | convolution-operator-tester.h | 1098 const float accumulated_range = accumulated_max - accumulated_min; in TestNHWCxF16() local 1099 …fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_min + accumulated_range / 255.0f * f… in TestNHWCxF16() 1100 …fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_max - accumulated_range / 255.0f * f… in TestNHWCxF16() 1886 const float accumulated_range = accumulated_max - accumulated_min; in TestSetupNHWCxF16() local 1887 …fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_min + accumulated_range / 255.0f * f… in TestSetupNHWCxF16() 1888 …fp16_ieee_to_fp32_value(fp16_ieee_from_fp32_value(accumulated_max - accumulated_range / 255.0f * f… in TestSetupNHWCxF16()
|