/external/XNNPACK/test/ |
D | vbinary-microkernel-tester.h | 103 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 …]
|
D | gavgpool-microkernel-tester.h | 156 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 …]
|
D | prelu-microkernel-tester.h | 104 …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()
|
D | avgpool-microkernel-tester.h | 219 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 …]
|
D | clamp-microkernel-tester.h | 87 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));
|
D | hswish-microkernel-tester.h | 66 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));
|
D | vbinaryc-microkernel-tester.h | 96 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));
|
D | vadd-microkernel-tester.h | 155 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…
|
D | vscale-microkernel-tester.h | 63 std::vector<float> x(n() + XNN_EXTRA_BYTES / sizeof(float)); 64 std::vector<float> y(n() + (inplace() ? XNN_EXTRA_BYTES / sizeof(float) : 0));
|
D | vmulcaddc-microkernel-tester.h | 131 …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 / …
|
D | dwconv-microkernel-tester.h | 179 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));
|
D | maxpool-microkernel-tester.h | 167 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) +
|
D | argmaxpool-microkernel-tester.h | 153 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));
|
D | prelu-operator-tester.h | 88 …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()
|
D | global-average-pooling-operator-tester.h | 161 …> 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()
|
D | channel-shuffle-operator-tester.h | 105 …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()
|
D | max-pooling-operator-tester.h | 455 …_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()
|
D | hardswish-operator-tester.h | 90 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()
|
D | vaddc-microkernel-tester.h | 147 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));
|
D | raddextexp-microkernel-tester.h | 49 std::vector<float> x(elements() + XNN_EXTRA_BYTES / sizeof(float)); in Test()
|
D | raddexpminusmax-microkernel-tester.h | 50 std::vector<float> x(elements() + XNN_EXTRA_BYTES / sizeof(float)); in Test()
|
D | ibilinear-microkernel-tester.h | 100 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()
|
D | dwconv2d-microkernel-tester.h | 177 …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/ |
D | f32-conv-hwc2chw.cc | 51 …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()
|
D | f32-conv-hwc.cc | 49 …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()
|