/external/XNNPACK/test/ |
D | gemm-microkernel-tester.h | 259 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 …]
|
D | fully-connected-operator-tester.h | 188 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()
|
D | spmm-microkernel-tester.h | 250 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()
|
D | gavgpool-spchw-microkernel-tester.h | 103 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;
|
D | vunary-microkernel-tester.h | 109 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())) :
|
D | global-average-pooling-operator-tester.h | 242 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()
|
D | dwconv-microkernel-tester.h | 202 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());
|
D | avgpool-microkernel-tester.h | 421 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 …]
|
D | argmaxpool-microkernel-tester.h | 206 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;
|
D | vbinary-microkernel-tester.h | 138 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())) :
|
D | vbinaryc-microkernel-tester.h | 135 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())) :
|
D | prelu-microkernel-tester.h | 145 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…
|
D | prelu-operator-tester.h | 124 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()
|
D | gavgpool-microkernel-tester.h | 319 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;
|
D | vmulcaddc-microkernel-tester.h | 156 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());
|
D | convolution-operator-tester.h | 632 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 …]
|
D | deconvolution-operator-tester.h | 500 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 …]
|
D | conv-hwc-microkernel-tester.h | 353 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…
|
D | conv-hwc2spchw-microkernel-tester.h | 353 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…
|
D | dwconv-spchw-microkernel-tester.h | 263 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());
|
D | argmax-pooling-operator-tester.h | 336 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()
|
D | add-operator-tester.h | 267 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()
|
D | maxpool-microkernel-tester.h | 268 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;
|
D | binary-elementwise-operator-tester.h | 202 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()
|
D | max-pooling-operator-tester.h | 512 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()
|