/external/XNNPACK/test/ |
D | vmulcaddc-microkernel-tester.h | 159 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());
|
D | gemm-microkernel-tester.h | 259 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 …]
|
D | fully-connected-operator-tester.h | 188 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()
|
D | global-average-pooling-operator-tester.h | 318 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()
|
D | gavgpool-cw-microkernel-tester.h | 102 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;
|
D | spmm-microkernel-tester.h | 265 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()
|
D | gavgpool-microkernel-tester.h | 480 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 …]
|
D | dwconv-microkernel-tester.h | 230 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 …]
|
D | avgpool-microkernel-tester.h | 459 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 …]
|
D | vbinaryc-microkernel-tester.h | 209 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())) :
|
D | convolution-operator-tester.h | 604 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 …]
|
D | dwconv2d-microkernel-tester.h | 207 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());
|
D | vbinary-microkernel-tester.h | 210 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())) :
|
D | deconvolution-operator-tester.h | 555 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 …]
|
D | conv-hwc2chw-microkernel-tester.h | 352 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…
|
D | conv-hwc-microkernel-tester.h | 346 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…
|
D | maxpool-microkernel-tester.h | 268 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;
|
D | binary-elementwise-operator-tester.h | 411 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()
|
D | average-pooling-operator-tester.h | 568 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()
|
D | max-pooling-operator-tester.h | 568 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()
|