/external/XNNPACK/test/ |
D | gemm-microkernel-tester.h | 258 const int32_t accumulated_min = *std::min_element(acc.cbegin(), acc.cend()); variable 260 …e c_scale = uint32_t(accumulated_max - accumulated_min) >= 256 ? double(uint32_t(accumulated_max -… 262 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / c_scale), 388 const int32_t accumulated_min = *std::min_element(acc.cbegin(), acc.cend()); variable 390 …e c_scale = uint32_t(accumulated_max - accumulated_min) >= 256 ? double(uint32_t(accumulated_max -… 392 lrint(127.5 - 0.5 * double(accumulated_min + accumulated_max) / c_scale), 491 const float accumulated_min = *std::min_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 …value(fp16_ieee_from_fp32_value(accumulated_max - (accumulated_max - accumulated_min) / 255.0f * f… 565 const float accumulated_min = *std::min_element(c_ref.cbegin(), c_ref.cend()); variable [all …]
|
D | fully-connected-operator-tester.h | 187 const int32_t accumulated_min = *std::min_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() 295 const float accumulated_min = *std::min_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()
|
D | spmm-microkernel-tester.h | 249 const float accumulated_min = *std::min_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… 421 const float accumulated_min = *std::min_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()
|
D | gavgpool-spchw-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 | vunary-microkernel-tester.h | 108 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); variable 110 const float accumulated_range = accumulated_max - accumulated_min; 115 (accumulated_min + accumulated_range / 255.0f * float(qmin())) :
|
D | global-average-pooling-operator-tester.h | 241 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestNWCxF32() local 243 const float accumulated_range = accumulated_max - accumulated_min; in TestNWCxF32() 246 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestNWCxF32() 316 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestNCWxF32() local 318 const float accumulated_range = accumulated_max - accumulated_min; in TestNCWxF32() 321 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestNCWxF32()
|
D | dwconv-microkernel-tester.h | 201 const int32_t accumulated_min = *std::min_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), 298 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); variable 300 const float accumulated_range = accumulated_max - accumulated_min; 301 const float output_min = accumulated_min + accumulated_range / 255.0f * float(qmin());
|
D | avgpool-microkernel-tester.h | 420 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); variable 422 const float accumulated_range = accumulated_max - accumulated_min; 423 const float y_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range; 499 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); variable 501 const float accumulated_range = accumulated_max - accumulated_min; 502 const float y_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range; 580 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); variable 582 const float accumulated_range = accumulated_max - accumulated_min; 583 const float y_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range; 660 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); variable [all …]
|
D | argmaxpool-microkernel-tester.h | 205 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); variable 207 const float accumulated_range = accumulated_max - accumulated_min; 208 const float output_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range; 308 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); variable 310 const float accumulated_range = accumulated_max - accumulated_min; 311 const float output_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range;
|
D | vbinary-microkernel-tester.h | 137 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); variable 139 const float accumulated_range = accumulated_max - accumulated_min; 144 (accumulated_min + accumulated_range / 255.0f * float(qmin())) :
|
D | vbinaryc-microkernel-tester.h | 134 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); variable 136 const float accumulated_range = accumulated_max - accumulated_min; 141 (accumulated_min + accumulated_range / 255.0f * float(qmin())) :
|
D | prelu-microkernel-tester.h | 144 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); variable 146 const float accumulated_range = accumulated_max - accumulated_min; 148 …-std::numeric_limits<float>::infinity() : accumulated_min + accumulated_range / 255.0f * float(qmi…
|
D | prelu-operator-tester.h | 123 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); in TestF32() local 125 const float accumulated_range = accumulated_max - accumulated_min; in TestF32() 127 …-std::numeric_limits<float>::infinity() : accumulated_min + accumulated_range / 255.0f * float(qmi… in TestF32()
|
D | gavgpool-microkernel-tester.h | 318 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); variable 320 const float accumulated_range = accumulated_max - accumulated_min; 321 const float y_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range; 385 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); variable 387 const float accumulated_range = accumulated_max - accumulated_min; 388 const float y_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range;
|
D | vmulcaddc-microkernel-tester.h | 155 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); variable 157 const float accumulated_range = accumulated_max - accumulated_min; 159 const float y_min = accumulated_min + accumulated_range / 255.0f * float(qmin());
|
D | convolution-operator-tester.h | 631 const int32_t accumulated_min = *std::min_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() 791 const float accumulated_min = *std::min_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() 957 const float accumulated_min = *std::min_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() 1097 const int32_t accumulated_min = *std::min_element(accumulators.cbegin(), accumulators.cend()); in TestSetupNHWCxQ8() local [all …]
|
D | deconvolution-operator-tester.h | 499 const int32_t accumulated_min = *std::min_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() 633 const float accumulated_min = *std::min_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() 771 const int32_t accumulated_min = *std::min_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() 994 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestSetupF32() local [all …]
|
D | conv-hwc-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-hwc2spchw-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 | dwconv-spchw-microkernel-tester.h | 262 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); variable 264 const float accumulated_range = accumulated_max - accumulated_min; 265 const float output_min = accumulated_min + accumulated_range / 255.0f * float(qmin());
|
D | argmax-pooling-operator-tester.h | 335 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestF32() local 337 const float accumulated_range = accumulated_max - accumulated_min; in TestF32() 340 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestF32() 451 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestSetupF32() local 453 const float accumulated_range = accumulated_max - accumulated_min; in TestSetupF32() 456 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestSetupF32()
|
D | add-operator-tester.h | 266 const float accumulated_min = *std::min_element(y_ref.cbegin(), y_ref.cend()); in TestF32() local 268 const float accumulated_range = accumulated_max - accumulated_min; in TestF32() 270 …-std::numeric_limits<float>::infinity() : accumulated_min + accumulated_range / 255.0f * float(qmi… in TestF32()
|
D | maxpool-microkernel-tester.h | 267 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); variable 269 const float accumulated_range = accumulated_max - accumulated_min; 270 const float output_min = accumulated_min + float(qmin()) / 255.0f * accumulated_range;
|
D | binary-elementwise-operator-tester.h | 201 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestF32() local 203 const float accumulated_range = accumulated_max - accumulated_min; in TestF32() 205 …-std::numeric_limits<float>::infinity() : accumulated_min + accumulated_range / 255.0f * float(qmi… in TestF32()
|
D | max-pooling-operator-tester.h | 511 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestF32() local 513 const float accumulated_range = accumulated_max - accumulated_min; in TestF32() 516 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestF32() 752 const float accumulated_min = *std::min_element(output_ref.cbegin(), output_ref.cend()); in TestSetupF32() local 754 const float accumulated_range = accumulated_max - accumulated_min; in TestSetupF32() 757 accumulated_min + accumulated_range / 255.0f * float(qmin()); in TestSetupF32()
|