Home
last modified time | relevance | path

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

1234

/external/XNNPACK/test/
Dvbinary-microkernel-tester.h103 std::vector<uint16_t> a(batch_size() + XNN_EXTRA_BYTES / sizeof(uint16_t)); in Test()
104 std::vector<uint16_t> b(batch_size() + XNN_EXTRA_BYTES / sizeof(uint16_t)); in Test()
105 …std::vector<uint16_t> y(batch_size() + (inplace_a() || inplace_b() ? XNN_EXTRA_BYTES / sizeof(uint… in Test()
165 std::vector<uint16_t> a(batch_size() + XNN_EXTRA_BYTES / sizeof(uint16_t)); in Test()
166 std::vector<uint16_t> b(batch_size() + XNN_EXTRA_BYTES / sizeof(uint16_t)); in Test()
167 …std::vector<uint16_t> y(batch_size() + (inplace_a() || inplace_b() ? XNN_EXTRA_BYTES / sizeof(uint… in Test()
244 std::vector<float> a(batch_size() + XNN_EXTRA_BYTES / sizeof(float));
245 std::vector<float> b(batch_size() + XNN_EXTRA_BYTES / sizeof(float));
246 …std::vector<float> y(batch_size() + (inplace_a() || inplace_b() ? XNN_EXTRA_BYTES / sizeof(float) …
305 std::vector<float> a(batch_size() + XNN_EXTRA_BYTES / sizeof(float));
[all …]
Dgavgpool-microkernel-tester.h156 std::vector<uint8_t> input(XNN_EXTRA_BYTES / sizeof(uint8_t) +
158 std::vector<uint8_t> zero(channels() + XNN_EXTRA_BYTES / sizeof(uint8_t));
230 std::vector<uint8_t> input(XNN_EXTRA_BYTES / sizeof(uint8_t) +
232 …std::vector<int32_t, AlignedAllocator<int32_t, 64>> buffer(channels() + XNN_EXTRA_BYTES / sizeof(u…
233 std::vector<uint8_t> zero(channels() + XNN_EXTRA_BYTES / sizeof(uint8_t));
308 std::vector<int8_t> input(XNN_EXTRA_BYTES / sizeof(int8_t) +
310 std::vector<int8_t> zero(channels() + XNN_EXTRA_BYTES / sizeof(int8_t));
383 std::vector<int8_t> input(XNN_EXTRA_BYTES / sizeof(int8_t) +
385 …std::vector<int32_t, AlignedAllocator<int32_t, 64>> buffer(channels() + XNN_EXTRA_BYTES / sizeof(i…
386 std::vector<int8_t> zero(channels() + XNN_EXTRA_BYTES / sizeof(int8_t));
[all …]
Dprelu-microkernel-tester.h104 …std::vector<uint16_t> x(channels() + (rows() - 1) * input_stride() + XNN_EXTRA_BYTES / sizeof(uint… in Test()
105 …std::vector<uint16_t, AlignedAllocator<uint16_t, 64>> w(channels() + XNN_EXTRA_BYTES / sizeof(uint… in Test()
106 …std::vector<uint16_t> y(channels() + (rows() - 1) * output_stride() + XNN_EXTRA_BYTES / sizeof(uin… in Test()
150 …std::vector<float> x(channels() + (rows() - 1) * input_stride() + XNN_EXTRA_BYTES / sizeof(float)); in Test()
151 std::vector<float, AlignedAllocator<float, 64>> w(channels() + XNN_EXTRA_BYTES / sizeof(float)); in Test()
152 …std::vector<float> y(channels() + (rows() - 1) * output_stride() + XNN_EXTRA_BYTES / sizeof(float)… in Test()
Davgpool-microkernel-tester.h219 std::vector<uint8_t> input(XNN_EXTRA_BYTES / sizeof(uint8_t) +
221 std::vector<uint8_t> zero(channels() + XNN_EXTRA_BYTES / sizeof(uint8_t));
231 std::fill(input.end() - XNN_EXTRA_BYTES / sizeof(uint8_t), input.end(), 0xA5);
321 std::vector<uint8_t> input(XNN_EXTRA_BYTES / sizeof(uint8_t) +
323 std::vector<uint8_t> zero(channels() + XNN_EXTRA_BYTES / sizeof(uint8_t));
328 …std::vector<int32_t, AlignedAllocator<int32_t, 64>> buffer(XNN_EXTRA_BYTES / sizeof(uint8_t) + cha…
334 std::fill(input.end() - XNN_EXTRA_BYTES / sizeof(uint8_t), input.end(), 0xA5);
424 std::vector<float> input(XNN_EXTRA_BYTES / sizeof(float) +
426 std::vector<float> zero(channels() + XNN_EXTRA_BYTES / sizeof(float));
432 std::fill(input.end() - XNN_EXTRA_BYTES / sizeof(float), input.end(), std::nanf(""));
[all …]
Dclamp-microkernel-tester.h87 std::vector<uint8_t> x(batch_size() + XNN_EXTRA_BYTES / sizeof(uint8_t));
88 std::vector<uint8_t> y(batch_size() + (inplace() ? XNN_EXTRA_BYTES / sizeof(uint8_t) : 0));
137 std::vector<uint16_t> x(batch_size() + XNN_EXTRA_BYTES / sizeof(uint16_t)); in Test()
138 std::vector<uint16_t> y(batch_size() + (inplace() ? XNN_EXTRA_BYTES / sizeof(uint16_t) : 0)); in Test()
180 std::vector<float> x(batch_size() + XNN_EXTRA_BYTES / sizeof(float));
181 std::vector<float> y(batch_size() + (inplace() ? XNN_EXTRA_BYTES / sizeof(float) : 0));
Dhswish-microkernel-tester.h66 std::vector<uint16_t> x(batch_size() + XNN_EXTRA_BYTES / sizeof(uint16_t)); in Test()
67 std::vector<uint16_t> y(batch_size() + (inplace() ? XNN_EXTRA_BYTES / sizeof(uint16_t) : 0)); in Test()
102 std::vector<float> x(batch_size() + XNN_EXTRA_BYTES / sizeof(float));
103 std::vector<float> y(batch_size() + (inplace() ? XNN_EXTRA_BYTES / sizeof(float) : 0));
Dvbinaryc-microkernel-tester.h96 std::vector<uint16_t> a(batch_size() + XNN_EXTRA_BYTES / sizeof(uint16_t)); in Test()
98 std::vector<uint16_t> y(batch_size() + (inplace() ? XNN_EXTRA_BYTES / sizeof(uint16_t) : 0)); in Test()
161 std::vector<uint16_t> a(batch_size() + XNN_EXTRA_BYTES / sizeof(uint16_t)); in Test()
163 std::vector<uint16_t> y(batch_size() + (inplace() ? XNN_EXTRA_BYTES / sizeof(uint16_t) : 0)); in Test()
243 std::vector<float> a(batch_size() + XNN_EXTRA_BYTES / sizeof(float));
245 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));
309 std::vector<float> y(batch_size() + (inplace() ? XNN_EXTRA_BYTES / sizeof(float) : 0));
395 std::vector<float> a(batch_size() + XNN_EXTRA_BYTES / sizeof(float));
397 std::vector<float> y(batch_size() + (inplace() ? XNN_EXTRA_BYTES / sizeof(float) : 0));
Dvadd-microkernel-tester.h155 std::vector<uint8_t> a(batch_size() + XNN_EXTRA_BYTES / sizeof(uint8_t));
156 std::vector<uint8_t> b(batch_size() + XNN_EXTRA_BYTES / sizeof(uint8_t));
157 …std::vector<uint8_t> y(batch_size() + (inplace_a() || inplace_b() ? XNN_EXTRA_BYTES / sizeof(uint8…
226 std::vector<int8_t> a(batch_size() + XNN_EXTRA_BYTES / sizeof(int8_t));
227 std::vector<int8_t> b(batch_size() + XNN_EXTRA_BYTES / sizeof(int8_t));
228 …std::vector<int8_t> y(batch_size() + (inplace_a() || inplace_b() ? XNN_EXTRA_BYTES / sizeof(int8_t…
Dvscale-microkernel-tester.h63 std::vector<float> x(n() + XNN_EXTRA_BYTES / sizeof(float));
64 std::vector<float> y(n() + (inplace() ? XNN_EXTRA_BYTES / sizeof(float) : 0));
Dvmulcaddc-microkernel-tester.h131 …std::vector<uint16_t> x((rows() - 1) * input_stride() + channels() + XNN_EXTRA_BYTES / sizeof(uint…
135 …nt16_t> y((rows() - 1) * output_stride() + channels() + (inplace() ? XNN_EXTRA_BYTES / sizeof(uint…
201 …std::vector<float> x((rows() - 1) * input_stride() + channels() + XNN_EXTRA_BYTES / sizeof(float));
205 …std::vector<float> y((rows() - 1) * output_stride() + channels() + (inplace() ? XNN_EXTRA_BYTES / …
Ddwconv-microkernel-tester.h179 std::vector<uint8_t> input(XNN_EXTRA_BYTES / sizeof(uint8_t) + indirection.size() * channels());
183 std::vector<uint8_t> zero(channels() + XNN_EXTRA_BYTES / sizeof(uint8_t));
292 std::vector<int8_t> input(XNN_EXTRA_BYTES / sizeof(int8_t) + indirection.size() * channels());
296 std::vector<int8_t> zero(channels() + XNN_EXTRA_BYTES / sizeof(int8_t));
404 … std::vector<uint16_t> input(XNN_EXTRA_BYTES / sizeof(uint16_t) + indirection.size() * channels());
408 std::vector<uint16_t> zero(channels() + XNN_EXTRA_BYTES / sizeof(uint16_t));
493 std::vector<float> input(XNN_EXTRA_BYTES / sizeof(float) + indirection.size() * channels()); in Test()
497 std::vector<float> zero(channels() + XNN_EXTRA_BYTES / sizeof(float)); in Test()
564 std::vector<float> input(XNN_EXTRA_BYTES / sizeof(float) + indirection.size() * channels());
568 std::vector<float> zero(channels() + XNN_EXTRA_BYTES / sizeof(float));
Dmaxpool-microkernel-tester.h167 std::vector<uint8_t> input(XNN_EXTRA_BYTES / sizeof(uint8_t) +
169 std::vector<uint8_t> output(XNN_EXTRA_BYTES / sizeof(uint8_t) +
241 std::vector<float> input(XNN_EXTRA_BYTES / sizeof(float) +
243 std::vector<float> output(XNN_EXTRA_BYTES / sizeof(float) +
Dargmaxpool-microkernel-tester.h153 std::vector<float> input(XNN_EXTRA_BYTES / sizeof(float) +
220 std::vector<float> input(XNN_EXTRA_BYTES / sizeof(float) +
225 channels() + XNN_EXTRA_BYTES / sizeof(uint32_t));
227 channels() + XNN_EXTRA_BYTES / sizeof(float));
Dprelu-operator-tester.h88 …std::vector<float> x((batch_size() - 1) * x_stride() + channels() + XNN_EXTRA_BYTES / sizeof(float… in TestF32()
90 …std::vector<float> y((batch_size() - 1) * y_stride() + channels() + XNN_EXTRA_BYTES / sizeof(float… in TestF32()
Dglobal-average-pooling-operator-tester.h161 …> input((batch_size() * width() - 1) * input_stride() + channels() + XNN_EXTRA_BYTES / sizeof(uint… in TestNWCxQU8()
230 …> input((batch_size() * width() - 1) * input_stride() + channels() + XNN_EXTRA_BYTES / sizeof(int8… in TestNWCxQS8()
299 …> input((batch_size() * width() - 1) * input_stride() + channels() + XNN_EXTRA_BYTES / sizeof(uint… in TestNWCxF16()
376 …> input((batch_size() * width() - 1) * input_stride() + channels() + XNN_EXTRA_BYTES / sizeof(floa… in TestNWCxF32()
455 std::vector<float> input(batch_size() * channels() * width() + XNN_EXTRA_BYTES / sizeof(float)); in TestNCWxF32()
Dchannel-shuffle-operator-tester.h105 …std::vector<uint8_t> input(XNN_EXTRA_BYTES / sizeof(uint8_t) + (batch_size() - 1) * input_stride()… in TestX8()
153 …std::vector<float> input(XNN_EXTRA_BYTES / sizeof(float) + (batch_size() - 1) * input_stride() + c… in TestX32()
Dmax-pooling-operator-tester.h455 …_height() * input_width() - 1) * input_pixel_stride() + channels() + XNN_EXTRA_BYTES / sizeof(uint… in TestU8()
456 …eight() * output_width() - 1) * output_pixel_stride() + channels() + XNN_EXTRA_BYTES / sizeof(uint… in TestU8()
538 …_height() * input_width() - 1) * input_pixel_stride() + channels() + XNN_EXTRA_BYTES / sizeof(floa… in TestF32()
539 …eight() * output_width() - 1) * output_pixel_stride() + channels() + XNN_EXTRA_BYTES / sizeof(floa… in TestF32()
636 std::vector<uint8_t> input(XNN_EXTRA_BYTES / sizeof(uint8_t) + std::max( in TestSetupU8()
639 std::vector<uint8_t> output(XNN_EXTRA_BYTES / sizeof(uint8_t) + std::max( in TestSetupU8()
776 std::vector<float> input(XNN_EXTRA_BYTES / sizeof(float) + std::max( in TestSetupF32()
779 std::vector<float> output(XNN_EXTRA_BYTES / sizeof(float) + std::max( in TestSetupF32()
Dhardswish-operator-tester.h90 std::vector<uint16_t> input(XNN_EXTRA_BYTES / sizeof(uint16_t) + in TestF16()
146 std::vector<float> input(XNN_EXTRA_BYTES / sizeof(float) + in TestF32()
Dvaddc-microkernel-tester.h147 std::vector<int8_t> a(batch_size() + XNN_EXTRA_BYTES / sizeof(int8_t));
148 std::vector<int8_t> y(batch_size() + (inplace() ? XNN_EXTRA_BYTES / sizeof(int8_t) : 0));
Draddextexp-microkernel-tester.h49 std::vector<float> x(elements() + XNN_EXTRA_BYTES / sizeof(float)); in Test()
Draddexpminusmax-microkernel-tester.h50 std::vector<float> x(elements() + XNN_EXTRA_BYTES / sizeof(float)); in Test()
Dibilinear-microkernel-tester.h100 std::vector<float> input(XNN_EXTRA_BYTES / sizeof(float) + indirection.size() * channels()); in Test()
154 …std::vector<float> input(XNN_EXTRA_BYTES / sizeof(float) + (channels() - 1) * input_stride() + 4 *… in TestCHW()
Ddwconv2d-microkernel-tester.h177 …or<float, AlignedAllocator<float, 64>> input(input_height() * input_width() + 2 * XNN_EXTRA_BYTES);
178 std::vector<float> zero(input_width() + 2 * XNN_EXTRA_BYTES);
/external/XNNPACK/bench/
Df32-conv-hwc2chw.cc51 …std::vector<float> input(input_height * input_width * input_channels + XNN_EXTRA_BYTES / sizeof(fl… in DConvHWC2CHW3X3S2P1Benchmark()
58 …at, AlignedAllocator<float, 32>> zero(input_channels * input_width + XNN_EXTRA_BYTES / sizeof(floa… in DConvHWC2CHW3X3S2P1Benchmark()
Df32-conv-hwc.cc49 …std::vector<float> input(input_height * input_width * input_channels + XNN_EXTRA_BYTES / sizeof(fl… in DConv3X3S2P1Benchmark()
56 …at, AlignedAllocator<float, 32>> zero(input_channels * input_width + XNN_EXTRA_BYTES / sizeof(floa… in DConv3X3S2P1Benchmark()

1234