Home
last modified time | relevance | path

Searched refs:XNN_EXTRA_BYTES (Results 1 – 25 of 170) sorted by relevance

1234567

/external/XNNPACK/test/
Dvunary-microkernel-tester.h135 std::vector<float> x(batch_size() + XNN_EXTRA_BYTES / sizeof(float)); in Test()
136 std::vector<float> y(batch_size() + (inplace() ? XNN_EXTRA_BYTES / sizeof(float) : 0)); in Test()
168 std::vector<uint16_t> x(batch_size() + XNN_EXTRA_BYTES / sizeof(uint16_t));
169 std::vector<uint16_t> y(batch_size() + (inplace() ? XNN_EXTRA_BYTES / sizeof(uint16_t) : 0));
207 std::vector<float> x(batch_size() + XNN_EXTRA_BYTES / sizeof(float));
208 std::vector<float> y(batch_size() + (inplace() ? XNN_EXTRA_BYTES / sizeof(float) : 0));
246 std::vector<float> x(batch_size() + XNN_EXTRA_BYTES / sizeof(float)); in Test()
247 std::vector<float> y(batch_size() + (inplace() ? XNN_EXTRA_BYTES / sizeof(float) : 0)); in Test()
283 std::vector<uint16_t> x(batch_size() + XNN_EXTRA_BYTES / sizeof(uint16_t)); in Test()
284 std::vector<uint16_t> y(batch_size() + (inplace() ? XNN_EXTRA_BYTES / sizeof(uint16_t) : 0)); in Test()
[all …]
Dvbinary-microkernel-tester.h97 std::vector<uint16_t> a(batch_size() + XNN_EXTRA_BYTES / sizeof(uint16_t)); in Test()
98 std::vector<uint16_t> b(batch_size() + XNN_EXTRA_BYTES / sizeof(uint16_t)); in Test()
99 …std::vector<uint16_t> y(batch_size() + (inplace_a() || inplace_b() ? XNN_EXTRA_BYTES / sizeof(uint… in Test()
158 std::vector<uint16_t> a(batch_size() + XNN_EXTRA_BYTES / sizeof(uint16_t)); in Test()
159 std::vector<uint16_t> b(batch_size() + XNN_EXTRA_BYTES / sizeof(uint16_t)); in Test()
160 …std::vector<uint16_t> y(batch_size() + (inplace_a() || inplace_b() ? XNN_EXTRA_BYTES / sizeof(uint… in Test()
237 std::vector<float> a(batch_size() + XNN_EXTRA_BYTES / sizeof(float));
238 std::vector<float> b(batch_size() + XNN_EXTRA_BYTES / sizeof(float));
239 …std::vector<float> y(batch_size() + (inplace_a() || inplace_b() ? XNN_EXTRA_BYTES / sizeof(float) …
304 std::vector<float> a(batch_size() + XNN_EXTRA_BYTES / sizeof(float)); in Test()
[all …]
Davgpool-microkernel-tester.h215 std::vector<uint16_t> input(XNN_EXTRA_BYTES / sizeof(uint16_t) + in Test()
217 std::vector<uint16_t> zero(channels() + XNN_EXTRA_BYTES / sizeof(uint16_t)); in Test()
223 …std::fill(input.end() - XNN_EXTRA_BYTES / sizeof(uint16_t), input.end(), UINT16_C(0x7E00) /* NaN *… in Test()
306 std::vector<uint16_t> input(XNN_EXTRA_BYTES / sizeof(uint16_t) + in Test()
308 std::vector<uint16_t> zero(channels() + XNN_EXTRA_BYTES / sizeof(uint16_t)); in Test()
311 …std::vector<uint16_t, AlignedAllocator<uint16_t, 64>> buffer(XNN_EXTRA_BYTES / sizeof(uint16_t) + … in Test()
315 …std::fill(input.end() - XNN_EXTRA_BYTES / sizeof(uint16_t), input.end(), UINT16_C(0x7E00) /* NaN *… in Test()
398 std::vector<float> input(XNN_EXTRA_BYTES / sizeof(float) + in Test()
400 std::vector<float> zero(channels() + XNN_EXTRA_BYTES / sizeof(float)); in Test()
406 std::fill(input.end() - XNN_EXTRA_BYTES / sizeof(float), input.end(), std::nanf("")); in Test()
[all …]
Dgavgpool-microkernel-tester.h155 std::vector<uint8_t> input(XNN_EXTRA_BYTES / sizeof(uint8_t) + in Test()
157 std::vector<uint8_t> zero(channels() + XNN_EXTRA_BYTES / sizeof(uint8_t)); in Test()
221 std::vector<uint8_t> input(XNN_EXTRA_BYTES / sizeof(uint8_t) + in Test()
223 …std::vector<int32_t, AlignedAllocator<int32_t, 64>> buffer(channels() + XNN_EXTRA_BYTES / sizeof(u… in Test()
224 std::vector<uint8_t> zero(channels() + XNN_EXTRA_BYTES / sizeof(uint8_t)); in Test()
290 std::vector<int8_t> input(XNN_EXTRA_BYTES / sizeof(int8_t) + in Test()
292 std::vector<int8_t> zero(channels() + XNN_EXTRA_BYTES / sizeof(int8_t)); in Test()
356 std::vector<int8_t> input(XNN_EXTRA_BYTES / sizeof(int8_t) + in Test()
358 …std::vector<int32_t, AlignedAllocator<int32_t, 64>> buffer(channels() + XNN_EXTRA_BYTES / sizeof(i… in Test()
359 std::vector<int8_t> zero(channels() + XNN_EXTRA_BYTES / sizeof(int8_t)); in Test()
[all …]
Dprelu-microkernel-tester.h101 …std::vector<uint16_t> x(channels() + (rows() - 1) * input_stride() + XNN_EXTRA_BYTES / sizeof(uint… in Test()
102 …std::vector<uint16_t, AlignedAllocator<uint16_t, 64>> w(channels() + XNN_EXTRA_BYTES / sizeof(uint… in Test()
103 …std::vector<uint16_t> y(channels() + (rows() - 1) * output_stride() + XNN_EXTRA_BYTES / sizeof(uin… in Test()
147 …std::vector<float> x(channels() + (rows() - 1) * input_stride() + XNN_EXTRA_BYTES / sizeof(float)); in Test()
148 std::vector<float, AlignedAllocator<float, 64>> w(channels() + XNN_EXTRA_BYTES / sizeof(float)); in Test()
149 …std::vector<float> y(channels() + (rows() - 1) * output_stride() + XNN_EXTRA_BYTES / sizeof(float)… in Test()
Dvbinaryc-microkernel-tester.h90 std::vector<uint16_t> a(batch_size() + XNN_EXTRA_BYTES / sizeof(uint16_t)); in Test()
92 std::vector<uint16_t> y(batch_size() + (inplace() ? XNN_EXTRA_BYTES / sizeof(uint16_t) : 0)); in Test()
154 std::vector<uint16_t> a(batch_size() + XNN_EXTRA_BYTES / sizeof(uint16_t)); in Test()
156 std::vector<uint16_t> y(batch_size() + (inplace() ? XNN_EXTRA_BYTES / sizeof(uint16_t) : 0)); in Test()
236 std::vector<float> a(batch_size() + XNN_EXTRA_BYTES / sizeof(float));
238 std::vector<float> y(batch_size() + (inplace() ? XNN_EXTRA_BYTES / sizeof(float) : 0));
307 std::vector<float> a(batch_size() + XNN_EXTRA_BYTES / sizeof(float)); in Test()
309 std::vector<float> y(batch_size() + (inplace() ? XNN_EXTRA_BYTES / sizeof(float) : 0)); in Test()
377 std::vector<float> a(batch_size() + XNN_EXTRA_BYTES / sizeof(float)); in Test()
379 std::vector<float> y(batch_size() + (inplace() ? XNN_EXTRA_BYTES / sizeof(float) : 0)); in Test()
Dtranspose-microkernel-tester.h97 …:vector<uint8_t> input(input_stride() * block_height() * input_element_stride() + XNN_EXTRA_BYTES); in Test()
126 …std::vector<uint64_t> input(input_stride() * output_stride() + XNN_EXTRA_BYTES / sizeof(uint64_t)); in Test()
152 …std::vector<uint32_t> input(input_stride() * output_stride() + XNN_EXTRA_BYTES / sizeof(uint32_t)); in Test()
178 std::vector<uint8_t> input(input_stride() * output_stride() * element_size() + XNN_EXTRA_BYTES); in Test()
204 …std::vector<uint16_t> input(input_stride() * output_stride() + XNN_EXTRA_BYTES / sizeof(uint16_t)); in Test()
230 std::vector<uint8_t> input(input_stride() * output_stride() + XNN_EXTRA_BYTES); in Test()
Dfilterbank-subtract-microkernel-tester.h66 …std::vector<uint32_t, AlignedAllocator<uint32_t, 64>> x(batch() + XNN_EXTRA_BYTES / sizeof(uint32_… in Test()
67 …std::vector<uint32_t, AlignedAllocator<uint32_t, 64>> noise(batch() + XNN_EXTRA_BYTES / sizeof(uin… in Test()
68 …std::vector<uint32_t, AlignedAllocator<uint32_t, 64>> noise_ref(batch() + XNN_EXTRA_BYTES / sizeof… in Test()
69 …std::vector<uint32_t, AlignedAllocator<uint32_t, 64>> y(batch() + (inplace() ? XNN_EXTRA_BYTES / s… in Test()
Dvmul-microkernel-tester.h151 std::vector<uint8_t> a(batch_size() + XNN_EXTRA_BYTES / sizeof(uint8_t)); in Test()
152 std::vector<uint8_t> b(batch_size() + XNN_EXTRA_BYTES / sizeof(uint8_t)); in Test()
153 …std::vector<uint8_t> y(batch_size() + (inplace_a() || inplace_b() ? XNN_EXTRA_BYTES / sizeof(uint8… in Test()
215 std::vector<int8_t> a(batch_size() + XNN_EXTRA_BYTES / sizeof(int8_t)); in Test()
216 std::vector<int8_t> b(batch_size() + XNN_EXTRA_BYTES / sizeof(int8_t)); in Test()
217 …std::vector<int8_t> y(batch_size() + (inplace_a() || inplace_b() ? XNN_EXTRA_BYTES / sizeof(int8_t… in Test()
Dvadd-microkernel-tester.h150 std::vector<uint8_t> a(batch_size() + XNN_EXTRA_BYTES / sizeof(uint8_t)); in Test()
151 std::vector<uint8_t> b(batch_size() + XNN_EXTRA_BYTES / sizeof(uint8_t)); in Test()
152 …std::vector<uint8_t> y(batch_size() + (inplace_a() || inplace_b() ? XNN_EXTRA_BYTES / sizeof(uint8… in Test()
213 std::vector<int8_t> a(batch_size() + XNN_EXTRA_BYTES / sizeof(int8_t)); in Test()
214 std::vector<int8_t> b(batch_size() + XNN_EXTRA_BYTES / sizeof(int8_t)); in Test()
215 …std::vector<int8_t> y(batch_size() + (inplace_a() || inplace_b() ? XNN_EXTRA_BYTES / sizeof(int8_t… in Test()
Dvcvt-microkernel-tester.h101 std::vector<uint16_t> input(batch_size() + XNN_EXTRA_BYTES / sizeof(uint16_t));
129 std::vector<float> input(batch_size() + XNN_EXTRA_BYTES / sizeof(float));
165 std::vector<float> input(batch_size() + XNN_EXTRA_BYTES / sizeof(float)); in Test()
210 std::vector<float> input(batch_size() + XNN_EXTRA_BYTES / sizeof(float)); in Test()
252 std::vector<int8_t> input(batch_size() + XNN_EXTRA_BYTES / sizeof(int8_t)); in Test()
293 std::vector<int8_t> input(batch_size() + XNN_EXTRA_BYTES / sizeof(int8_t)); in Test()
331 std::vector<uint8_t> input(batch_size() + XNN_EXTRA_BYTES / sizeof(uint8_t)); in Test()
372 std::vector<uint8_t> input(batch_size() + XNN_EXTRA_BYTES / sizeof(uint8_t)); in Test()
Dwindow-microkernel-tester.h78 std::vector<int16_t> x(batch() * rows() + XNN_EXTRA_BYTES / sizeof(int16_t)); in Test()
79 …std::vector<int16_t, AlignedAllocator<int16_t, 64>> w(batch() + XNN_EXTRA_BYTES / sizeof(int16_t)); in Test()
80 std::vector<int16_t> y(batch() * rows() + (inplace() ? XNN_EXTRA_BYTES / sizeof(int16_t) : 0)); in Test()
Dtranspose-operator-tester.h64 std::vector<uint8_t> input(count + XNN_EXTRA_BYTES / sizeof(uint8_t)); in TestX8()
104 std::vector<uint8_t> input(count + XNN_EXTRA_BYTES / sizeof(uint8_t)); in TestRunX8()
133 std::vector<uint16_t> input(count + XNN_EXTRA_BYTES / sizeof(uint16_t)); in TestX16()
173 std::vector<uint16_t> input(count + XNN_EXTRA_BYTES / sizeof(uint16_t)); in TestRunX16()
202 std::vector<uint32_t> input(count + XNN_EXTRA_BYTES / sizeof(uint32_t)); in TestX32()
242 std::vector<uint32_t> input(count + XNN_EXTRA_BYTES / sizeof(uint32_t)); in TestRunX32()
Dmaxpool-microkernel-tester.h168 std::vector<int8_t> input(XNN_EXTRA_BYTES / sizeof(int8_t) + in Test()
170 std::vector<int8_t> output(XNN_EXTRA_BYTES / sizeof(int8_t) + in Test()
240 std::vector<uint8_t> input(XNN_EXTRA_BYTES / sizeof(uint8_t) + in Test()
242 std::vector<uint8_t> output(XNN_EXTRA_BYTES / sizeof(uint8_t) + in Test()
309 std::vector<uint16_t> input(XNN_EXTRA_BYTES / sizeof(uint16_t) + in Test()
311 std::vector<uint16_t> output(XNN_EXTRA_BYTES / sizeof(uint16_t) + in Test()
398 std::vector<float> input(XNN_EXTRA_BYTES / sizeof(float) + in Test()
400 std::vector<float> output(XNN_EXTRA_BYTES / sizeof(float) + in Test()
Dvaddc-microkernel-tester.h141 std::vector<uint8_t> a(batch_size() + XNN_EXTRA_BYTES / sizeof(uint8_t)); in Test()
142 std::vector<uint8_t> y(batch_size() + (inplace() ? XNN_EXTRA_BYTES / sizeof(uint8_t) : 0)); in Test()
202 std::vector<int8_t> a(batch_size() + XNN_EXTRA_BYTES / sizeof(int8_t)); in Test()
203 std::vector<int8_t> y(batch_size() + (inplace() ? XNN_EXTRA_BYTES / sizeof(int8_t) : 0)); in Test()
Dvmulc-microkernel-tester.h142 std::vector<uint8_t> a(batch_size() + XNN_EXTRA_BYTES / sizeof(uint8_t)); in Test()
143 std::vector<uint8_t> y(batch_size() + (inplace() ? XNN_EXTRA_BYTES / sizeof(uint8_t) : 0)); in Test()
204 std::vector<int8_t> a(batch_size() + XNN_EXTRA_BYTES / sizeof(int8_t)); in Test()
205 std::vector<int8_t> y(batch_size() + (inplace() ? XNN_EXTRA_BYTES / sizeof(int8_t) : 0)); in Test()
Dlut-microkernel-tester.h63 std::vector<uint8_t> x(batch_size() + XNN_EXTRA_BYTES / sizeof(uint8_t)); in Test()
65 std::vector<uint8_t> y(batch_size() + (inplace() ? XNN_EXTRA_BYTES / sizeof(uint8_t) : 0)); in Test()
Dvlshift-microkernel-tester.h67 std::vector<int16_t> x(batch() + XNN_EXTRA_BYTES / sizeof(int16_t)); in Test()
68 std::vector<int16_t> y(batch() + (inplace() ? XNN_EXTRA_BYTES / sizeof(int16_t) : 0)); in Test()
Ddwconv2d-microkernel-tester.h178 …or<float, AlignedAllocator<float, 64>> input(input_height() * input_width() + 2 * XNN_EXTRA_BYTES);
179 std::vector<float> zero(input_width() + 2 * XNN_EXTRA_BYTES);
255 …t16_t, AlignedAllocator<uint16_t, 64>> input(input_height() * input_width() + 2 * XNN_EXTRA_BYTES); in Test()
256 std::vector<uint16_t> zero(input_width() + 2 * XNN_EXTRA_BYTES); in Test()
Dsoftmax-operator-tester.h123 …std::vector<uint16_t> input((batch_size() - 1) * input_stride() + channels() + XNN_EXTRA_BYTES / s… in TestF16()
124 …uint16_t> output((batch_size() - 1) * output_stride() + channels() + XNN_EXTRA_BYTES / sizeof(uint… in TestF16()
187 …std::vector<float> input((batch_size() - 1) * input_stride() + channels() + XNN_EXTRA_BYTES / size… in TestF32()
188 …std::vector<float> output((batch_size() - 1) * output_stride() + channels() + XNN_EXTRA_BYTES / si… in TestF32()
/external/XNNPACK/bench/
Ds16-window.cc34 (rows * batch) + XNN_EXTRA_BYTES / sizeof(int16_t)); in window()
36 batch + XNN_EXTRA_BYTES / sizeof(int16_t)); in window()
38 (rows * batch) + XNN_EXTRA_BYTES / sizeof(int16_t)); in window()
Du32-filterbank-subtract.cc32 …std::vector<uint32_t, AlignedAllocator<uint32_t, 64>> input(batch + XNN_EXTRA_BYTES / sizeof(uint3… in filterbank_subtract()
33 …std::vector<uint32_t, AlignedAllocator<uint32_t, 64>> noise_estimate(batch + XNN_EXTRA_BYTES / siz… in filterbank_subtract()
Dxx-transpose.cc37 height * width * element_size + XNN_EXTRA_BYTES / sizeof(uint8_t)); in transpose()
39 height * width * element_size + XNN_EXTRA_BYTES / sizeof(uint8_t)); in transpose()
Dcs16-bfly4.cc39 fft_size * 2 + XNN_EXTRA_BYTES / sizeof(int16_t)); in cs16_bfly4()
41 fft_size * 2 + XNN_EXTRA_BYTES / sizeof(int16_t)); in cs16_bfly4()
Dx24-transpose.cc36 height * width * 3 + XNN_EXTRA_BYTES / sizeof(uint8_t)); in transpose()
38 height * width * 3 + XNN_EXTRA_BYTES / sizeof(uint8_t)); in transpose()

1234567