• Home
  • Raw
  • Download

Lines Matching refs:indirection

101     std::vector<const uint16_t*> indirection(pixels() * 4);  in Test()
102 … std::vector<uint16_t> input(XNN_EXTRA_BYTES / sizeof(uint16_t) + indirection.size() * channels()); in Test()
112 for (size_t i = 0; i < indirection.size(); i++) { in Test()
113 indirection[i] = input.data() + i * channels() - input_offset(); in Test()
115 std::shuffle(indirection.begin(), indirection.end(), rng); in Test()
123 …fp16_ieee_to_fp32_value(indirection[i * 4 + 0][c + input_offset()]) * (1.0f - alpha_h) * (1.0f - a… in Test()
124 … fp16_ieee_to_fp32_value(indirection[i * 4 + 1][c + input_offset()]) * alpha_h * (1.0f - alpha_v) + in Test()
125 … fp16_ieee_to_fp32_value(indirection[i * 4 + 2][c + input_offset()]) * (1.0f - alpha_h) * alpha_v + in Test()
126 fp16_ieee_to_fp32_value(indirection[i * 4 + 3][c + input_offset()]) * alpha_h * alpha_v; in Test()
133 reinterpret_cast<const void**>(indirection.data()), input_offset() * sizeof(uint16_t), in Test()
155 std::vector<const float*> indirection(pixels() * 4); in Test()
156 std::vector<float> input(XNN_EXTRA_BYTES / sizeof(float) + indirection.size() * channels()); in Test()
166 for (size_t i = 0; i < indirection.size(); i++) { in Test()
167 indirection[i] = input.data() + i * channels() - input_offset(); in Test()
169 std::shuffle(indirection.begin(), indirection.end(), rng); in Test()
177 indirection[i * 4 + 0][c + input_offset()] * (1.0f - alpha_h) * (1.0f - alpha_v) + in Test()
178 indirection[i * 4 + 1][c + input_offset()] * alpha_h * (1.0f - alpha_v) + in Test()
179 indirection[i * 4 + 2][c + input_offset()] * (1.0f - alpha_h) * alpha_v + in Test()
180 indirection[i * 4 + 3][c + input_offset()] * alpha_h * alpha_v; in Test()
187 indirection.data(), input_offset() * sizeof(float), in Test()
211 std::vector<const int8_t*> indirection(pixels() * 4); in Test()
212 std::vector<int8_t> input(XNN_EXTRA_BYTES / sizeof(int8_t) + indirection.size() * channels()); in Test()
222 for (size_t i = 0; i < indirection.size(); i++) { in Test()
223 indirection[i] = input.data() + i * channels() - input_offset(); in Test()
225 std::shuffle(indirection.begin(), indirection.end(), rng); in Test()
233 … int32_t(indirection[i * 4 + 0][c + input_offset()]) * (2048 - alpha_h) * (2048 - alpha_v) + in Test()
234 int32_t(indirection[i * 4 + 1][c + input_offset()]) * alpha_h * (2048 - alpha_v) + in Test()
235 int32_t(indirection[i * 4 + 2][c + input_offset()]) * (2048 - alpha_h) * alpha_v + in Test()
236 int32_t(indirection[i * 4 + 3][c + input_offset()]) * alpha_h * alpha_v + in Test()
247 indirection.data(), input_offset() * sizeof(int8_t), in Test()
268 std::vector<const uint8_t*> indirection(pixels() * 4); in Test()
269 std::vector<uint8_t> input(XNN_EXTRA_BYTES / sizeof(uint8_t) + indirection.size() * channels()); in Test()
279 for (size_t i = 0; i < indirection.size(); i++) { in Test()
280 indirection[i] = input.data() + i * channels() - input_offset(); in Test()
282 std::shuffle(indirection.begin(), indirection.end(), rng); in Test()
290 … int32_t(indirection[i * 4 + 0][c + input_offset()]) * (2048 - alpha_h) * (2048 - alpha_v) + in Test()
291 int32_t(indirection[i * 4 + 1][c + input_offset()]) * alpha_h * (2048 - alpha_v) + in Test()
292 int32_t(indirection[i * 4 + 2][c + input_offset()]) * (2048 - alpha_h) * alpha_v + in Test()
293 int32_t(indirection[i * 4 + 3][c + input_offset()]) * alpha_h * alpha_v) >> 22; in Test()
302 indirection.data(), input_offset() * sizeof(uint8_t), in Test()
321 std::vector<const uint16_t*> indirection(pixels() * 2); in TestCHW()
334 for (size_t i = 0; i < indirection.size(); i++) { in TestCHW()
336 indirection[i] = left_corner; in TestCHW()
338 std::shuffle(indirection.begin(), indirection.end(), rng); in TestCHW()
348 …fp16_ieee_to_fp32_value((indirection[i * 2 + 0] + 0)[c * input_stride() + input_offset()]) * (1.0f… in TestCHW()
349 …fp16_ieee_to_fp32_value((indirection[i * 2 + 0] + 1)[c * input_stride() + input_offset()]) * alpha… in TestCHW()
350 …fp16_ieee_to_fp32_value((indirection[i * 2 + 1] + 0)[c * input_stride() + input_offset()]) * (1.0f… in TestCHW()
351 …fp16_ieee_to_fp32_value((indirection[i * 2 + 1] + 1)[c * input_stride() + input_offset()]) * alpha… in TestCHW()
358 reinterpret_cast<const void**>(indirection.data()), input_offset() * sizeof(uint16_t), in TestCHW()
379 std::vector<const float*> indirection(pixels() * 2); in TestCHW()
392 for (size_t i = 0; i < indirection.size(); i++) { in TestCHW()
394 indirection[i] = left_corner; in TestCHW()
396 std::shuffle(indirection.begin(), indirection.end(), rng); in TestCHW()
406 …(indirection[i * 2 + 0] + 0)[c * input_stride() + input_offset()] * (1.0f - alpha_h) * (1.0f - alp… in TestCHW()
407 … (indirection[i * 2 + 0] + 1)[c * input_stride() + input_offset()] * alpha_h * (1.0f - alpha_v) + in TestCHW()
408 … (indirection[i * 2 + 1] + 0)[c * input_stride() + input_offset()] * (1.0f - alpha_h) * alpha_v + in TestCHW()
409 (indirection[i * 2 + 1] + 1)[c * input_stride() + input_offset()] * alpha_h * alpha_v; in TestCHW()
416 indirection.data(), input_offset() * sizeof(float), in TestCHW()