/external/XNNPACK/models/ |
D | fp32-mobilenet-v1.cc | 109 auto f32rng = std::bind(std::uniform_real_distribution<float>(-1.0f, +1.0f), std::ref(rng)); in FP32MobileNetV1() local 110 std::generate(v0.begin(), v0.end(), std::ref(f32rng)); in FP32MobileNetV1() 111 std::generate(v1.begin(), v1.end(), std::ref(f32rng)); in FP32MobileNetV1() 112 std::generate(v2.begin(), v2.end(), std::ref(f32rng)); in FP32MobileNetV1() 113 std::generate(v3.begin(), v3.end(), std::ref(f32rng)); in FP32MobileNetV1() 114 std::generate(v4.begin(), v4.end(), std::ref(f32rng)); in FP32MobileNetV1() 115 std::generate(v5.begin(), v5.end(), std::ref(f32rng)); in FP32MobileNetV1() 116 std::generate(v6.begin(), v6.end(), std::ref(f32rng)); in FP32MobileNetV1() 117 std::generate(v7.begin(), v7.end(), std::ref(f32rng)); in FP32MobileNetV1() 118 std::generate(v8.begin(), v8.end(), std::ref(f32rng)); in FP32MobileNetV1() [all …]
|
D | fp32-mobilenet-v2.cc | 194 auto f32rng = std::bind(std::uniform_real_distribution<float>(-1.0f, +1.0f), std::ref(rng)); in FP32MobileNetV2() local 195 std::generate(v0.begin(), v0.end(), std::ref(f32rng)); in FP32MobileNetV2() 196 std::generate(v1.begin(), v1.end(), std::ref(f32rng)); in FP32MobileNetV2() 197 std::generate(v2.begin(), v2.end(), std::ref(f32rng)); in FP32MobileNetV2() 198 std::generate(v3.begin(), v3.end(), std::ref(f32rng)); in FP32MobileNetV2() 199 std::generate(v4.begin(), v4.end(), std::ref(f32rng)); in FP32MobileNetV2() 200 std::generate(v5.begin(), v5.end(), std::ref(f32rng)); in FP32MobileNetV2() 201 std::generate(v6.begin(), v6.end(), std::ref(f32rng)); in FP32MobileNetV2() 202 std::generate(v7.begin(), v7.end(), std::ref(f32rng)); in FP32MobileNetV2() 203 std::generate(v8.begin(), v8.end(), std::ref(f32rng)); in FP32MobileNetV2() [all …]
|
D | fp32-sparse-mobilenet-v1.cc | 109 auto f32rng = std::bind(std::uniform_real_distribution<float>(-1.0f, +1.0f), std::ref(rng)); in FP32SparseMobileNetV1() local 110 std::generate(v0.begin(), v0.end(), std::ref(f32rng)); in FP32SparseMobileNetV1() 111 std::generate(v1.begin(), v1.end(), std::ref(f32rng)); in FP32SparseMobileNetV1() 112 std::generate(v2.begin(), v2.end(), std::ref(f32rng)); in FP32SparseMobileNetV1() 113 std::generate(v3.begin(), v3.end(), std::ref(f32rng)); in FP32SparseMobileNetV1() 114 std::generate(v4.begin(), v4.end(), std::ref(f32rng)); in FP32SparseMobileNetV1() 115 std::generate(v5.begin(), v5.end(), std::ref(f32rng)); in FP32SparseMobileNetV1() 116 std::generate(v6.begin(), v6.end(), std::ref(f32rng)); in FP32SparseMobileNetV1() 117 std::generate(v7.begin(), v7.end(), std::ref(f32rng)); in FP32SparseMobileNetV1() 118 std::generate(v8.begin(), v8.end(), std::ref(f32rng)); in FP32SparseMobileNetV1() [all …]
|
D | fp32-mobilenet-v3-large.cc | 265 auto f32rng = std::bind(std::uniform_real_distribution<float>(-1.0f, +1.0f), std::ref(rng)); in FP32MobileNetV3Large() local 266 std::generate(v0.begin(), v0.end(), std::ref(f32rng)); in FP32MobileNetV3Large() 267 std::generate(v1.begin(), v1.end(), std::ref(f32rng)); in FP32MobileNetV3Large() 268 std::generate(v2.begin(), v2.end(), std::ref(f32rng)); in FP32MobileNetV3Large() 269 std::generate(v3.begin(), v3.end(), std::ref(f32rng)); in FP32MobileNetV3Large() 270 std::generate(v4.begin(), v4.end(), std::ref(f32rng)); in FP32MobileNetV3Large() 271 std::generate(v5.begin(), v5.end(), std::ref(f32rng)); in FP32MobileNetV3Large() 272 std::generate(v6.begin(), v6.end(), std::ref(f32rng)); in FP32MobileNetV3Large() 273 std::generate(v7.begin(), v7.end(), std::ref(f32rng)); in FP32MobileNetV3Large() 274 std::generate(v8.begin(), v8.end(), std::ref(f32rng)); in FP32MobileNetV3Large() [all …]
|
D | fp32-mobilenet-v3-small.cc | 231 auto f32rng = std::bind(std::uniform_real_distribution<float>(-1.0f, +1.0f), std::ref(rng)); in FP32MobileNetV3Small() local 232 std::generate(v0.begin(), v0.end(), std::ref(f32rng)); in FP32MobileNetV3Small() 233 std::generate(v1.begin(), v1.end(), std::ref(f32rng)); in FP32MobileNetV3Small() 234 std::generate(v2.begin(), v2.end(), std::ref(f32rng)); in FP32MobileNetV3Small() 235 std::generate(v3.begin(), v3.end(), std::ref(f32rng)); in FP32MobileNetV3Small() 236 std::generate(v4.begin(), v4.end(), std::ref(f32rng)); in FP32MobileNetV3Small() 237 std::generate(v5.begin(), v5.end(), std::ref(f32rng)); in FP32MobileNetV3Small() 238 std::generate(v6.begin(), v6.end(), std::ref(f32rng)); in FP32MobileNetV3Small() 239 std::generate(v7.begin(), v7.end(), std::ref(f32rng)); in FP32MobileNetV3Small() 240 std::generate(v8.begin(), v8.end(), std::ref(f32rng)); in FP32MobileNetV3Small() [all …]
|
D | fp32-sparse-mobilenet-v2.cc | 194 auto f32rng = std::bind(std::uniform_real_distribution<float>(-1.0f, +1.0f), std::ref(rng)); in FP32SparseMobileNetV2() local 195 std::generate(v0.begin(), v0.end(), std::ref(f32rng)); in FP32SparseMobileNetV2() 196 std::generate(v1.begin(), v1.end(), std::ref(f32rng)); in FP32SparseMobileNetV2() 197 std::generate(v2.begin(), v2.end(), std::ref(f32rng)); in FP32SparseMobileNetV2() 198 std::generate(v3.begin(), v3.end(), std::ref(f32rng)); in FP32SparseMobileNetV2() 199 std::generate(v4.begin(), v4.end(), std::ref(f32rng)); in FP32SparseMobileNetV2() 200 std::generate(v5.begin(), v5.end(), std::ref(f32rng)); in FP32SparseMobileNetV2() 201 std::generate(v6.begin(), v6.end(), std::ref(f32rng)); in FP32SparseMobileNetV2() 202 std::generate(v7.begin(), v7.end(), std::ref(f32rng)); in FP32SparseMobileNetV2() 203 std::generate(v8.begin(), v8.end(), std::ref(f32rng)); in FP32SparseMobileNetV2() [all …]
|
D | fp32-sparse-mobilenet-v3-large.cc | 265 auto f32rng = std::bind(std::uniform_real_distribution<float>(-1.0f, +1.0f), std::ref(rng)); in FP32SparseMobileNetV3Large() local 266 std::generate(v0.begin(), v0.end(), std::ref(f32rng)); in FP32SparseMobileNetV3Large() 267 std::generate(v1.begin(), v1.end(), std::ref(f32rng)); in FP32SparseMobileNetV3Large() 268 std::generate(v2.begin(), v2.end(), std::ref(f32rng)); in FP32SparseMobileNetV3Large() 269 std::generate(v3.begin(), v3.end(), std::ref(f32rng)); in FP32SparseMobileNetV3Large() 270 std::generate(v4.begin(), v4.end(), std::ref(f32rng)); in FP32SparseMobileNetV3Large() 271 std::generate(v5.begin(), v5.end(), std::ref(f32rng)); in FP32SparseMobileNetV3Large() 272 std::generate(v6.begin(), v6.end(), std::ref(f32rng)); in FP32SparseMobileNetV3Large() 273 std::generate(v7.begin(), v7.end(), std::ref(f32rng)); in FP32SparseMobileNetV3Large() 274 std::generate(v8.begin(), v8.end(), std::ref(f32rng)); in FP32SparseMobileNetV3Large() [all …]
|
D | fp32-sparse-mobilenet-v3-small.cc | 231 auto f32rng = std::bind(std::uniform_real_distribution<float>(-1.0f, +1.0f), std::ref(rng)); in FP32SparseMobileNetV3Small() local 232 std::generate(v0.begin(), v0.end(), std::ref(f32rng)); in FP32SparseMobileNetV3Small() 233 std::generate(v1.begin(), v1.end(), std::ref(f32rng)); in FP32SparseMobileNetV3Small() 234 std::generate(v2.begin(), v2.end(), std::ref(f32rng)); in FP32SparseMobileNetV3Small() 235 std::generate(v3.begin(), v3.end(), std::ref(f32rng)); in FP32SparseMobileNetV3Small() 236 std::generate(v4.begin(), v4.end(), std::ref(f32rng)); in FP32SparseMobileNetV3Small() 237 std::generate(v5.begin(), v5.end(), std::ref(f32rng)); in FP32SparseMobileNetV3Small() 238 std::generate(v6.begin(), v6.end(), std::ref(f32rng)); in FP32SparseMobileNetV3Small() 239 std::generate(v7.begin(), v7.end(), std::ref(f32rng)); in FP32SparseMobileNetV3Small() 240 std::generate(v8.begin(), v8.end(), std::ref(f32rng)); in FP32SparseMobileNetV3Small() [all …]
|
/external/XNNPACK/test/ |
D | vbinaryc-microkernel-tester.h | 93 auto f32rng = std::bind(std::uniform_real_distribution<float>(1.0e-2f, 1.0f), rng); in Test() local 94 auto f16rng = std::bind(fp16_ieee_from_fp32_value, f32rng); in Test() 158 auto f32rng = std::bind(std::uniform_real_distribution<float>(0.0f, 1.0f), rng); in Test() local 159 auto f16rng = std::bind(fp16_ieee_from_fp32_value, f32rng); in Test() 241 auto f32rng = std::bind(std::uniform_real_distribution<float>(0.0f, 1.0f), rng); variable 244 const float b = f32rng(); 248 std::generate(a.begin(), a.end(), std::ref(f32rng)); 250 std::generate(y.begin(), y.end(), std::ref(f32rng)); 305 auto f32rng = std::bind(std::uniform_real_distribution<float>(0.0f, 1.0f), rng); variable 308 const float b = f32rng(); [all …]
|
D | vbinary-microkernel-tester.h | 100 auto f32rng = std::bind(std::uniform_real_distribution<float>(0.01f, 1.0f), rng); in Test() local 101 auto f16rng = std::bind(fp16_ieee_from_fp32_value, f32rng); in Test() 162 auto f32rng = std::bind(std::uniform_real_distribution<float>(0.01f, 1.0f), rng); in Test() local 163 auto f16rng = std::bind(fp16_ieee_from_fp32_value, f32rng); in Test() 242 auto f32rng = std::bind(std::uniform_real_distribution<float>(0.01f, 1.0f), rng); variable 249 std::generate(a.begin(), a.end(), std::ref(f32rng)); 250 std::generate(b.begin(), b.end(), std::ref(f32rng)); 252 std::generate(y.begin(), y.end(), std::ref(f32rng)); 303 auto f32rng = std::bind(std::uniform_real_distribution<float>(0.01f, 1.0f), rng); variable 310 std::generate(a.begin(), a.end(), std::ref(f32rng)); [all …]
|
D | vscale-microkernel-tester.h | 61 auto f32rng = std::bind(std::uniform_real_distribution<float>(-1.0f, 1.0f), rng); variable 68 std::generate(y.begin(), y.end(), std::ref(f32rng)); 70 std::generate(x.begin(), x.end(), std::ref(f32rng)); 73 const float c = f32rng();
|
D | hswish-microkernel-tester.h | 63 auto f32rng = std::bind(std::uniform_real_distribution<float>(-4.0f, 4.0f), std::ref(rng)); in Test() local 64 auto f16rng = std::bind(fp16_ieee_from_fp32_value, f32rng); in Test() 100 auto f32rng = std::bind(std::uniform_real_distribution<float>(-4.0f, 4.0f), rng); variable 106 std::generate(x.begin(), x.end(), std::ref(f32rng)); 108 std::generate(y.begin(), y.end(), std::ref(f32rng));
|
D | ibilinear-microkernel-tester.h | 97 auto f32rng = std::bind(std::uniform_real_distribution<float>(0.0f, 1.0f), rng); in Test() local 106 std::generate(input.begin(), input.end(), std::ref(f32rng)); in Test() 107 std::generate(packed_weights.begin(), packed_weights.end(), std::ref(f32rng)); in Test() 151 auto f32rng = std::bind(std::uniform_real_distribution<float>(0.0f, 1.0f), rng); in TestCHW() local 160 std::generate(input.begin(), input.end(), std::ref(f32rng)); in TestCHW() 161 std::generate(packed_weights.begin(), packed_weights.end(), std::ref(f32rng)); in TestCHW()
|
D | vmulcaddc-microkernel-tester.h | 124 auto f32rng = std::bind(std::uniform_real_distribution<float>(0.0f, 1.0f), rng); variable 125 auto f16rng = std::bind(fp16_ieee_from_fp32_value, f32rng); 195 auto f32rng = std::bind(std::uniform_real_distribution<float>(0.0f, 1.0f), rng); variable 208 std::generate(scale.begin(), scale.end(), std::ref(f32rng)); 209 std::generate(bias.begin(), bias.end(), std::ref(f32rng)); 210 std::generate(x.begin(), x.end(), std::ref(f32rng));
|
D | clamp-microkernel-tester.h | 134 auto f32rng = std::bind(std::uniform_real_distribution<float>(0.0f, 255.0f), rng); in Test() local 135 auto f16rng = std::bind(fp16_ieee_from_fp32_value, f32rng); in Test() 178 auto f32rng = std::bind(std::uniform_real_distribution<float>(0.0f, 255.0f), rng); variable 184 std::generate(x.begin(), x.end(), std::ref(f32rng)); 186 std::generate(y.begin(), y.end(), std::ref(f32rng));
|
D | hardswish-operator-tester.h | 87 auto f32rng = std::bind(std::uniform_real_distribution<float>(-4.0f, 4.0f), rng); in TestF16() local 88 auto f16rng = std::bind(fp16_ieee_from_fp32_value, f32rng); in TestF16() 144 auto f32rng = std::bind(std::uniform_real_distribution<float>(-4.0f, 4.0f), rng); in TestF32() local 151 std::generate(input.begin(), input.end(), std::ref(f32rng)); in TestF32()
|
D | raddextexp-microkernel-tester.h | 47 auto f32rng = std::bind(std::uniform_real_distribution<float>(90.0f, 100.0f), rng); in Test() local 51 std::generate(x.begin(), x.end(), std::ref(f32rng)); in Test()
|
D | raddexpminusmax-microkernel-tester.h | 48 auto f32rng = std::bind(std::uniform_real_distribution<float>(90.0f, 100.0f), rng); in Test() local 52 std::generate(x.begin(), x.end(), std::ref(f32rng)); in Test()
|
/external/XNNPACK/bench/ |
D | f32-conv-hwc2chw.cc | 41 auto f32rng = std::bind(std::uniform_real_distribution<float>(0.0f, 1.0f), std::ref(rng)); in DConvHWC2CHW3X3S2P1Benchmark() local 52 std::generate(input.begin(), input.end(), std::ref(f32rng)); in DConvHWC2CHW3X3S2P1Benchmark() 54 std::generate(kernel.begin(), kernel.end(), std::ref(f32rng)); in DConvHWC2CHW3X3S2P1Benchmark() 56 std::generate(bias.begin(), bias.end(), std::ref(f32rng)); in DConvHWC2CHW3X3S2P1Benchmark()
|
D | f32-softmax.cc | 36 auto f32rng = std::bind(std::uniform_real_distribution<float>(-1000.0f, 1000.0f), std::ref(rng)); in DNNLSoftArgMax() local 43 std::generate(x.begin(), x.end(), std::ref(f32rng)); in DNNLSoftArgMax() 197 auto f32rng = std::bind(std::uniform_real_distribution<float>(-1000.0f, 1000.0f), std::ref(rng)); in ThreePassSoftMaxWithRecomputing() local 204 std::generate(x.begin(), x.end(), std::ref(f32rng)); in ThreePassSoftMaxWithRecomputing() 259 auto f32rng = std::bind(std::uniform_real_distribution<float>(-1000.0f, 1000.0f), std::ref(rng)); in ThreePassSoftMaxWithReloading() local 266 std::generate(x.begin(), x.end(), std::ref(f32rng)); in ThreePassSoftMaxWithReloading() 320 auto f32rng = std::bind(std::uniform_real_distribution<float>(-1000.0f, 1000.0f), std::ref(rng)); in TwoPassSoftMax() local 327 std::generate(x.begin(), x.end(), std::ref(f32rng)); in TwoPassSoftMax()
|
D | hardswish.cc | 36 auto f32rng = std::bind(std::uniform_real_distribution<float>(-10.0f, 10.0f), std::ref(rng)); in xnnpack_hardswish_f32() local 40 std::generate(input.begin(), input.end(), std::ref(f32rng)); in xnnpack_hardswish_f32() 103 auto f32rng = std::bind(std::uniform_real_distribution<float>(-10.0f, 10.0f), std::ref(rng)); in tflite_hardswish_f32() local 183 std::ref(f32rng)); in tflite_hardswish_f32() 216 auto f32rng = std::bind(std::uniform_real_distribution<float>(-10.0f, 10.0f), std::ref(rng)); in xnnpack_hardswish_f16() local 217 auto f16rng = std::bind(fp16_ieee_from_fp32_value, f32rng); in xnnpack_hardswish_f16()
|
D | f32-conv-hwc.cc | 39 auto f32rng = std::bind(std::uniform_real_distribution<float>(0.0f, 1.0f), std::ref(rng)); in DConv3X3S2P1Benchmark() local 50 std::generate(input.begin(), input.end(), std::ref(f32rng)); in DConv3X3S2P1Benchmark() 52 std::generate(kernel.begin(), kernel.end(), std::ref(f32rng)); in DConv3X3S2P1Benchmark() 54 std::generate(bias.begin(), bias.end(), std::ref(f32rng)); in DConv3X3S2P1Benchmark()
|
D | f32-im2col-gemm.cc | 48 auto f32rng = std::bind(std::uniform_real_distribution<float>(0.0f, 1.0f), std::ref(rng)); in Im2ColGEMMBenchmark() local 62 std::generate(a.begin(), a.end(), std::ref(f32rng)); in Im2ColGEMMBenchmark() 64 std::generate(k.begin(), k.end(), std::ref(f32rng)); in Im2ColGEMMBenchmark() 66 std::generate(b.begin(), b.end(), std::ref(f32rng)); in Im2ColGEMMBenchmark()
|
D | f32-relu.cc | 33 auto f32rng = std::bind(std::uniform_real_distribution<float>(-10.0f, 10.0f), std::ref(rng)); in f32_relu() local 36 std::generate(x.begin(), x.end(), std::ref(f32rng)); in f32_relu() 38 std::generate(x.begin(), x.end(), std::ref(f32rng)); in f32_relu()
|
D | bankers-rounding.cc | 34 auto f32rng = std::bind(std::uniform_real_distribution<float>(-10.0f, 10.0f), std::ref(rng)); in xnnpack_bankers_rounding_f32() local 38 std::generate(input.begin(), input.end(), std::ref(f32rng)); in xnnpack_bankers_rounding_f32() 101 auto f32rng = std::bind(std::uniform_real_distribution<float>(-10.0f, 10.0f), std::ref(rng)); in tflite_bankers_rounding_f32() local 181 std::ref(f32rng)); in tflite_bankers_rounding_f32()
|