Home
last modified time | relevance | path

Searched refs:f32rng (Results 1 – 25 of 105) sorted by relevance

12345

/external/XNNPACK/models/
Dfp32-mobilenet-v1.cc109 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 …]
Dfp32-mobilenet-v2.cc194 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 …]
Dfp32-sparse-mobilenet-v1.cc109 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 …]
Dfp32-mobilenet-v3-large.cc265 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 …]
Dfp32-mobilenet-v3-small.cc231 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 …]
Dfp32-sparse-mobilenet-v2.cc194 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 …]
Dfp32-sparse-mobilenet-v3-large.cc265 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 …]
Dfp32-sparse-mobilenet-v3-small.cc231 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/
Dvbinaryc-microkernel-tester.h93 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 …]
Dvbinary-microkernel-tester.h100 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 …]
Dvscale-microkernel-tester.h61 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();
Dhswish-microkernel-tester.h63 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));
Dibilinear-microkernel-tester.h97 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()
Dvmulcaddc-microkernel-tester.h124 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));
Dclamp-microkernel-tester.h134 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));
Dhardswish-operator-tester.h87 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()
Draddextexp-microkernel-tester.h47 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()
Draddexpminusmax-microkernel-tester.h48 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/
Df32-conv-hwc2chw.cc41 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()
Df32-softmax.cc36 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()
Dhardswish.cc36 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()
Df32-conv-hwc.cc39 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()
Df32-im2col-gemm.cc48 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()
Df32-relu.cc33 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()
Dbankers-rounding.cc34 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()

12345