Lines Matching refs:groups
169 inline ConvolutionOperatorTester& groups(uint32_t groups) { in groups() function
170 assert(groups >= 1); in groups()
171 this->groups_ = groups; in groups()
175 inline uint32_t groups() const { in groups() function
322 return group_input_channels() * groups(); in input_channel_stride()
324 assert(this->input_channel_stride_ >= group_input_channels() * groups()); in input_channel_stride()
337 return group_output_channels() * groups(); in output_channel_stride()
339 assert(this->output_channel_stride_ >= group_output_channels() * groups()); in output_channel_stride()
517 …batch_size() * ((input_height() * input_width() - 1) * input_channel_stride() + groups() * group_i… in TestNHWCxQS8()
518 …std::vector<int8_t> kernel(groups() * group_output_channels() * kernel_height() * kernel_width() *… in TestNHWCxQS8()
519 std::vector<int32_t> bias(groups() * group_output_channels()); in TestNHWCxQS8()
520 …() * ((output_height() * output_width() - 1) * output_channel_stride() + groups() * group_output_c… in TestNHWCxQS8()
521 …std::vector<int32_t> accumulators(batch_size() * output_height() * output_width() * groups() * gro… in TestNHWCxQS8()
522 …std::vector<double> output_ref(batch_size() * output_height() * output_width() * groups() * group_… in TestNHWCxQS8()
537 for (size_t g = 0; g < groups(); g++) { in TestNHWCxQS8()
539 …accumulators[(((i * output_height() + oy) * output_width() + ox) * groups() + g) * group_output_ch… in TestNHWCxQS8()
561 for (size_t g = 0; g < groups(); g++) { in TestNHWCxQS8()
563 …accumulators[(((i * output_height() + oy) * output_width() + ox) * groups() + g) * group_output_ch… in TestNHWCxQS8()
565 … int32_t(kernel[((ky * kernel_width() + kx) * groups() + g) * group_output_channels() + oc]); in TestNHWCxQS8()
585 for (size_t g = 0; g < groups(); g++) { in TestNHWCxQS8()
588 …accumulators[(((i * output_height() + oy) * output_width() + ox) * groups() + g) * group_output_ch… in TestNHWCxQS8()
628 groups(), group_input_channels(), group_output_channels(), in TestNHWCxQS8()
658 for (size_t g = 0; g < groups(); g++) { in TestNHWCxQS8()
665 …output_ref[(((i * output_height() + y) * output_width() + x) * groups() + g) * group_output_channe… in TestNHWCxQS8()
684 …batch_size() * ((input_height() * input_width() - 1) * input_channel_stride() + groups() * group_i… in TestNHWCxQU8()
685 …std::vector<uint8_t> kernel(groups() * group_output_channels() * kernel_height() * kernel_width() … in TestNHWCxQU8()
686 std::vector<int32_t> bias(groups() * group_output_channels()); in TestNHWCxQU8()
687 …() * ((output_height() * output_width() - 1) * output_channel_stride() + groups() * group_output_c… in TestNHWCxQU8()
688 …std::vector<int32_t> accumulators(batch_size() * output_height() * output_width() * groups() * gro… in TestNHWCxQU8()
689 …std::vector<double> output_ref(batch_size() * output_height() * output_width() * groups() * group_… in TestNHWCxQU8()
705 for (size_t g = 0; g < groups(); g++) { in TestNHWCxQU8()
707 …accumulators[(((i * output_height() + oy) * output_width() + ox) * groups() + g) * group_output_ch… in TestNHWCxQU8()
729 for (size_t g = 0; g < groups(); g++) { in TestNHWCxQU8()
731 …accumulators[(((i * output_height() + oy) * output_width() + ox) * groups() + g) * group_output_ch… in TestNHWCxQU8()
733 …(int32_t(kernel[((ky * kernel_width() + kx) * groups() + g) * group_output_channels() + oc]) - int… in TestNHWCxQU8()
753 for (size_t g = 0; g < groups(); g++) { in TestNHWCxQU8()
756 …accumulators[(((i * output_height() + oy) * output_width() + ox) * groups() + g) * group_output_ch… in TestNHWCxQU8()
796 groups(), group_input_channels(), group_output_channels(), in TestNHWCxQU8()
827 for (size_t g = 0; g < groups(); g++) { in TestNHWCxQU8()
834 …output_ref[(((i * output_height() + y) * output_width() + x) * groups() + g) * group_output_channe… in TestNHWCxQU8()
852 …batch_size() * ((input_height() * input_width() - 1) * input_channel_stride() + groups() * group_i… in TestNHWCxF32()
853 …std::vector<float> kernel(groups() * group_output_channels() * kernel_height() * kernel_width() * … in TestNHWCxF32()
854 std::vector<float> bias(groups() * group_output_channels()); in TestNHWCxF32()
855 …() * ((output_height() * output_width() - 1) * output_channel_stride() + groups() * group_output_c… in TestNHWCxF32()
856 …std::vector<float> output_ref(batch_size() * output_height() * output_width() * groups() * group_o… in TestNHWCxF32()
869 for (size_t g = 0; g < groups(); g++) { in TestNHWCxF32()
871 …output_ref[(((i * output_height() + oy) * output_width() + ox) * groups() + g) * group_output_chan… in TestNHWCxF32()
893 for (size_t g = 0; g < groups(); g++) { in TestNHWCxF32()
895 …output_ref[(((i * output_height() + oy) * output_width() + ox) * groups() + g) * group_output_chan… in TestNHWCxF32()
897 … kernel[((ky * kernel_width() + kx) * groups() + g) * group_output_channels() + oc]; in TestNHWCxF32()
917 for (size_t g = 0; g < groups(); g++) { in TestNHWCxF32()
920 …output_ref[(((i * output_height() + oy) * output_width() + ox) * groups() + g) * group_output_chan… in TestNHWCxF32()
957 groups(), group_input_channels(), group_output_channels(), in TestNHWCxF32()
986 for (size_t g = 0; g < groups(); g++) { in TestNHWCxF32()
993 …output_ref[(((i * output_height() + y) * output_width() + x) * groups() + g) * group_output_channe… in TestNHWCxF32()
995 … std::abs(output_ref[(((i * output_height() + y) * output_width() + x) * groups() + g) * group_out… in TestNHWCxF32()
1012 …batch_size() * ((input_height() * input_width() - 1) * input_channel_stride() + groups() * group_i… in TestNHWCxF16()
1013 …std::vector<uint16_t> kernel(groups() * group_output_channels() * kernel_height() * kernel_width()… in TestNHWCxF16()
1014 std::vector<uint16_t> bias(groups() * group_output_channels()); in TestNHWCxF16()
1015 …() * ((output_height() * output_width() - 1) * output_channel_stride() + groups() * group_output_c… in TestNHWCxF16()
1016 …std::vector<float> output_ref(batch_size() * output_height() * output_width() * groups() * group_o… in TestNHWCxF16()
1029 for (size_t g = 0; g < groups(); g++) { in TestNHWCxF16()
1031 …output_ref[(((i * output_height() + oy) * output_width() + ox) * groups() + g) * group_output_chan… in TestNHWCxF16()
1053 for (size_t g = 0; g < groups(); g++) { in TestNHWCxF16()
1055 …output_ref[(((i * output_height() + oy) * output_width() + ox) * groups() + g) * group_output_chan… in TestNHWCxF16()
1057 …fp16_ieee_to_fp32_value(kernel[((ky * kernel_width() + kx) * groups() + g) * group_output_channels… in TestNHWCxF16()
1077 for (size_t g = 0; g < groups(); g++) { in TestNHWCxF16()
1080 …output_ref[(((i * output_height() + oy) * output_width() + ox) * groups() + g) * group_output_chan… in TestNHWCxF16()
1119 groups(), group_input_channels(), group_output_channels(), in TestNHWCxF16()
1148 for (size_t g = 0; g < groups(); g++) { in TestNHWCxF16()
1154 …groups() + g) * group_output_channels() + c], fp16_ieee_to_fp32_value(output[((i * output_height()… in TestNHWCxF16()
1171 …((batch_size() - 1) * input_channel_stride() + groups() * group_input_channels()) * input_height()… in TestNCHWxF32()
1173 … groups() * group_output_channels() * kernel_height() * kernel_width() * group_input_channels()); in TestNCHWxF32()
1174 std::vector<float> bias(groups() * group_output_channels()); in TestNCHWxF32()
1176 …((batch_size() - 1) * output_channel_stride() + groups() * group_output_channels()) * output_heigh… in TestNCHWxF32()
1177 …std::vector<float> output_ref(batch_size() * groups() * group_output_channels() * output_height() … in TestNCHWxF32()
1195 for (size_t g = 0; g < groups(); g++) { in TestNCHWxF32()
1197 …output_ref[(((i * groups() + g) * group_output_channels() + oc) * output_height() + oy) * output_w… in TestNCHWxF32()
1217 for (size_t g = 0; g < groups(); g++) { in TestNCHWxF32()
1220 …output_ref[(((i * groups() + g) * group_output_channels() + oc) * output_height() + oy) * output_w… in TestNCHWxF32()
1221 …input[((((i * input_height() + iy) * input_width() + ix) * groups() + g) * group_input_channels() … in TestNCHWxF32()
1245 for (size_t g = 0; g < groups(); g++) { in TestNCHWxF32()
1247 …output_ref[(((i * groups() + g) * group_output_channels() + oc) * output_height() + oy) * output_w… in TestNCHWxF32()
1249 … kernel[((ky * kernel_width() + kx) * groups() + g) * group_output_channels() + oc]; in TestNCHWxF32()
1269 for (size_t g = 0; g < groups(); g++) { in TestNCHWxF32()
1272 …output_ref[(((i * groups() + g) * group_output_channels() + oc) * output_height() + oy) * output_w… in TestNCHWxF32()
1310 groups(), group_input_channels(), group_output_channels(), in TestNCHWxF32()
1339 for (size_t g = 0; g < groups(); g++) { in TestNCHWxF32()
1346 …output_ref[(((i * groups() + g) * group_output_channels() + c) * output_height() + y) * output_wid… in TestNCHWxF32()
1348 …1.0e-4 * std::abs(output_ref[(((i * groups() + g) * group_output_channels() + c) * output_height()… in TestNCHWxF32()
1368 …batch_size() * ((input_height() * input_width() - 1) * input_channel_stride() + groups() * group_i… in TestSetupNHWCxQS8()
1369 …next_input_height() * next_input_width() - 1) * input_channel_stride() + groups() * group_input_ch… in TestSetupNHWCxQS8()
1370 …std::vector<int8_t> kernel(groups() * group_output_channels() * kernel_height() * kernel_width() *… in TestSetupNHWCxQS8()
1371 std::vector<int32_t> bias(groups() * group_output_channels()); in TestSetupNHWCxQS8()
1373 …batch_size() * ((output_height() * output_width() - 1) * output_channel_stride() + groups() * grou… in TestSetupNHWCxQS8()
1374 …t_output_height() * next_output_width() - 1) * output_channel_stride() + groups() * group_output_c… in TestSetupNHWCxQS8()
1375 …std::vector<int32_t> accumulators(batch_size() * output_height() * output_width() * groups() * gro… in TestSetupNHWCxQS8()
1376 …std::vector<double> output_ref(batch_size() * output_height() * output_width() * groups() * group_… in TestSetupNHWCxQS8()
1377 …ulators(next_batch_size() * next_output_height() * next_output_width() * groups() * group_output_c… in TestSetupNHWCxQS8()
1378 …put_ref(next_batch_size() * next_output_height() * next_output_width() * groups() * group_output_c… in TestSetupNHWCxQS8()
1393 for (size_t g = 0; g < groups(); g++) { in TestSetupNHWCxQS8()
1395 …accumulators[(((i * output_height() + oy) * output_width() + ox) * groups() + g) * group_output_ch… in TestSetupNHWCxQS8()
1414 for (size_t g = 0; g < groups(); g++) { in TestSetupNHWCxQS8()
1417 …accumulators[(((i * output_height() + oy) * output_width() + ox) * groups() + g) * group_output_ch… in TestSetupNHWCxQS8()
1455 groups(), group_input_channels(), group_output_channels(), in TestSetupNHWCxQS8()
1484 for (size_t g = 0; g < groups(); g++) { in TestSetupNHWCxQS8()
1491 …output_ref[(((i * output_height() + y) * output_width() + x) * groups() + g) * group_output_channe… in TestSetupNHWCxQS8()
1510 for (size_t g = 0; g < groups(); g++) { in TestSetupNHWCxQS8()
1512 …mulators[(((i * next_output_height() + oy) * next_output_width() + ox) * groups() + g) * group_out… in TestSetupNHWCxQS8()
1531 for (size_t g = 0; g < groups(); g++) { in TestSetupNHWCxQS8()
1534 …mulators[(((i * next_output_height() + oy) * next_output_width() + ox) * groups() + g) * group_out… in TestSetupNHWCxQS8()
1567 for (size_t g = 0; g < groups(); g++) { in TestSetupNHWCxQS8()
1574 …output_ref[(((i * next_output_height() + y) * next_output_width() + x) * groups() + g) * group_out… in TestSetupNHWCxQS8()
1595 …batch_size() * ((input_height() * input_width() - 1) * input_channel_stride() + groups() * group_i… in TestSetupNHWCxQU8()
1596 …next_input_height() * next_input_width() - 1) * input_channel_stride() + groups() * group_input_ch… in TestSetupNHWCxQU8()
1597 …std::vector<uint8_t> kernel(groups() * group_output_channels() * kernel_height() * kernel_width() … in TestSetupNHWCxQU8()
1598 std::vector<int32_t> bias(groups() * group_output_channels()); in TestSetupNHWCxQU8()
1600 …batch_size() * ((output_height() * output_width() - 1) * output_channel_stride() + groups() * grou… in TestSetupNHWCxQU8()
1601 …t_output_height() * next_output_width() - 1) * output_channel_stride() + groups() * group_output_c… in TestSetupNHWCxQU8()
1602 …std::vector<int32_t> accumulators(batch_size() * output_height() * output_width() * groups() * gro… in TestSetupNHWCxQU8()
1603 …std::vector<double> output_ref(batch_size() * output_height() * output_width() * groups() * group_… in TestSetupNHWCxQU8()
1604 …ulators(next_batch_size() * next_output_height() * next_output_width() * groups() * group_output_c… in TestSetupNHWCxQU8()
1605 …put_ref(next_batch_size() * next_output_height() * next_output_width() * groups() * group_output_c… in TestSetupNHWCxQU8()
1621 for (size_t g = 0; g < groups(); g++) { in TestSetupNHWCxQU8()
1623 …accumulators[(((i * output_height() + oy) * output_width() + ox) * groups() + g) * group_output_ch… in TestSetupNHWCxQU8()
1642 for (size_t g = 0; g < groups(); g++) { in TestSetupNHWCxQU8()
1645 …accumulators[(((i * output_height() + oy) * output_width() + ox) * groups() + g) * group_output_ch… in TestSetupNHWCxQU8()
1683 groups(), group_input_channels(), group_output_channels(), in TestSetupNHWCxQU8()
1713 for (size_t g = 0; g < groups(); g++) { in TestSetupNHWCxQU8()
1720 …output_ref[(((i * output_height() + y) * output_width() + x) * groups() + g) * group_output_channe… in TestSetupNHWCxQU8()
1739 for (size_t g = 0; g < groups(); g++) { in TestSetupNHWCxQU8()
1741 …mulators[(((i * next_output_height() + oy) * next_output_width() + ox) * groups() + g) * group_out… in TestSetupNHWCxQU8()
1760 for (size_t g = 0; g < groups(); g++) { in TestSetupNHWCxQU8()
1763 …mulators[(((i * next_output_height() + oy) * next_output_width() + ox) * groups() + g) * group_out… in TestSetupNHWCxQU8()
1796 for (size_t g = 0; g < groups(); g++) { in TestSetupNHWCxQU8()
1803 …output_ref[(((i * next_output_height() + y) * next_output_width() + x) * groups() + g) * group_out… in TestSetupNHWCxQU8()
1824 …batch_size() * ((input_height() * input_width() - 1) * input_channel_stride() + groups() * group_i… in TestSetupNHWCxF16()
1825 …next_input_height() * next_input_width() - 1) * input_channel_stride() + groups() * group_input_ch… in TestSetupNHWCxF16()
1826 …std::vector<uint16_t> kernel(groups() * group_output_channels() * kernel_height() * kernel_width()… in TestSetupNHWCxF16()
1827 std::vector<uint16_t> bias(groups() * group_output_channels()); in TestSetupNHWCxF16()
1829 …batch_size() * ((output_height() * output_width() - 1) * output_channel_stride() + groups() * grou… in TestSetupNHWCxF16()
1830 …t_output_height() * next_output_width() - 1) * output_channel_stride() + groups() * group_output_c… in TestSetupNHWCxF16()
1831 …std::vector<float> output_ref(batch_size() * output_height() * output_width() * groups() * group_o… in TestSetupNHWCxF16()
1832 …put_ref(next_batch_size() * next_output_height() * next_output_width() * groups() * group_output_c… in TestSetupNHWCxF16()
1845 for (size_t g = 0; g < groups(); g++) { in TestSetupNHWCxF16()
1847 …output_ref[(((i * output_height() + oy) * output_width() + ox) * groups() + g) * group_output_chan… in TestSetupNHWCxF16()
1866 for (size_t g = 0; g < groups(); g++) { in TestSetupNHWCxF16()
1869 …output_ref[(((i * output_height() + oy) * output_width() + ox) * groups() + g) * group_output_chan… in TestSetupNHWCxF16()
1905 groups(), group_input_channels(), group_output_channels(), in TestSetupNHWCxF16()
1933 for (size_t g = 0; g < groups(); g++) { in TestSetupNHWCxF16()
1939 …groups() + g) * group_output_channels() + c], fp16_ieee_to_fp32_value(output[((i * output_height()… in TestSetupNHWCxF16()
1956 for (size_t g = 0; g < groups(); g++) { in TestSetupNHWCxF16()
1958 …tput_ref[(((i * next_output_height() + oy) * next_output_width() + ox) * groups() + g) * group_out… in TestSetupNHWCxF16()
1977 for (size_t g = 0; g < groups(); g++) { in TestSetupNHWCxF16()
1980 …tput_ref[(((i * next_output_height() + oy) * next_output_width() + ox) * groups() + g) * group_out… in TestSetupNHWCxF16()
2012 for (size_t g = 0; g < groups(); g++) { in TestSetupNHWCxF16()
2018 …groups() + g) * group_output_channels() + c], fp16_ieee_to_fp32_value(output[((i * next_output_hei… in TestSetupNHWCxF16()
2036 …batch_size() * ((input_height() * input_width() - 1) * input_channel_stride() + groups() * group_i… in TestSetupNHWCxF32()
2037 …next_input_height() * next_input_width() - 1) * input_channel_stride() + groups() * group_input_ch… in TestSetupNHWCxF32()
2038 …std::vector<float> kernel(groups() * group_output_channels() * kernel_height() * kernel_width() * … in TestSetupNHWCxF32()
2039 std::vector<float> bias(groups() * group_output_channels()); in TestSetupNHWCxF32()
2041 …batch_size() * ((output_height() * output_width() - 1) * output_channel_stride() + groups() * grou… in TestSetupNHWCxF32()
2042 …t_output_height() * next_output_width() - 1) * output_channel_stride() + groups() * group_output_c… in TestSetupNHWCxF32()
2043 …std::vector<float> output_ref(batch_size() * output_height() * output_width() * groups() * group_o… in TestSetupNHWCxF32()
2044 …put_ref(next_batch_size() * next_output_height() * next_output_width() * groups() * group_output_c… in TestSetupNHWCxF32()
2057 for (size_t g = 0; g < groups(); g++) { in TestSetupNHWCxF32()
2059 …output_ref[(((i * output_height() + oy) * output_width() + ox) * groups() + g) * group_output_chan… in TestSetupNHWCxF32()
2078 for (size_t g = 0; g < groups(); g++) { in TestSetupNHWCxF32()
2081 …output_ref[(((i * output_height() + oy) * output_width() + ox) * groups() + g) * group_output_chan… in TestSetupNHWCxF32()
2116 groups(), group_input_channels(), group_output_channels(), in TestSetupNHWCxF32()
2144 for (size_t g = 0; g < groups(); g++) { in TestSetupNHWCxF32()
2151 …output_ref[(((i * output_height() + y) * output_width() + x) * groups() + g) * group_output_channe… in TestSetupNHWCxF32()
2153 … std::abs(output_ref[(((i * output_height() + y) * output_width() + x) * groups() + g) * group_out… in TestSetupNHWCxF32()
2170 for (size_t g = 0; g < groups(); g++) { in TestSetupNHWCxF32()
2172 …tput_ref[(((i * next_output_height() + oy) * next_output_width() + ox) * groups() + g) * group_out… in TestSetupNHWCxF32()
2191 for (size_t g = 0; g < groups(); g++) { in TestSetupNHWCxF32()
2194 …tput_ref[(((i * next_output_height() + oy) * next_output_width() + ox) * groups() + g) * group_out… in TestSetupNHWCxF32()
2226 for (size_t g = 0; g < groups(); g++) { in TestSetupNHWCxF32()
2233 …output_ref[(((i * next_output_height() + y) * next_output_width() + x) * groups() + g) * group_out… in TestSetupNHWCxF32()
2235 …output_ref[(((i * next_output_height() + y) * next_output_width() + x) * groups() + g) * group_out… in TestSetupNHWCxF32()