/external/XNNPACK/test/ |
D | vunary-microkernel-tester.h | 135 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 …]
|
D | vbinary-microkernel-tester.h | 97 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 …]
|
D | avgpool-microkernel-tester.h | 215 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 …]
|
D | gavgpool-microkernel-tester.h | 155 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 …]
|
D | prelu-microkernel-tester.h | 101 …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()
|
D | vbinaryc-microkernel-tester.h | 90 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()
|
D | transpose-microkernel-tester.h | 97 …: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()
|
D | filterbank-subtract-microkernel-tester.h | 66 …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()
|
D | vmul-microkernel-tester.h | 151 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()
|
D | vadd-microkernel-tester.h | 150 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()
|
D | vcvt-microkernel-tester.h | 101 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()
|
D | window-microkernel-tester.h | 78 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()
|
D | transpose-operator-tester.h | 64 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()
|
D | maxpool-microkernel-tester.h | 168 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()
|
D | vaddc-microkernel-tester.h | 141 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()
|
D | vmulc-microkernel-tester.h | 142 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()
|
D | lut-microkernel-tester.h | 63 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()
|
D | vlshift-microkernel-tester.h | 67 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()
|
D | dwconv2d-microkernel-tester.h | 178 …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()
|
D | softmax-operator-tester.h | 123 …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/ |
D | s16-window.cc | 34 (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()
|
D | u32-filterbank-subtract.cc | 32 …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()
|
D | xx-transpose.cc | 37 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()
|
D | cs16-bfly4.cc | 39 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()
|
D | x24-transpose.cc | 36 height * width * 3 + XNN_EXTRA_BYTES / sizeof(uint8_t)); in transpose() 38 height * width * 3 + XNN_EXTRA_BYTES / sizeof(uint8_t)); in transpose()
|