/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/ruy/ruy/ |
A D | block_map.cc | 185 if (rows > cols) { in GetRectangularness() 192 std::min(floor_log2_quotient(rows, cols), in GetRectangularness() 197 } else if (cols > rows) { in GetRectangularness() 199 ceil_log2(rows) - pot_log2(kernel_rows); in GetRectangularness() 204 std::min(floor_log2_quotient(cols, rows), in GetRectangularness() 324 if (rows == 1 || cols == 1) { in IsObviouslyLinearTraversal() 346 RUY_DCHECK_GE(rows, kernel_rows); in MakeBlockMap() 348 RUY_DCHECK_EQ(rows % kernel_rows, 0); in MakeBlockMap() 355 GetRectangularness(rows, cols, kernel_rows, kernel_cols, in MakeBlockMap() 362 const int size = std::min(rows, cols); in MakeBlockMap() [all …]
|
A D | mat.h | 106 std::int32_t rows = 0; member 116 ret.rows = src.rows(); in ToInternal() 168 std::uint8_t rows = 1; member 179 std::int32_t rows = 0; member 191 return a.cols == b.cols && a.rows == b.rows && a.stride == b.stride && 192 a.order == b.order && a.kernel.rows == b.kernel.rows && 316 return layout.stride == layout.rows; in IsUnstrided() 338 return layout.stride == layout.rows; in IsUnstrided() 374 RUY_DCHECK(is_pot(layout.kernel.rows)); in Offset() 451 std::swap(result.rows, result.cols); in Transpose() [all …]
|
A D | benchmark.cc | 31 int rows; member 42 test_set.rows = shape.rows; in Benchmark() 139 shape.rows = explicit_rows ? explicit_rows : i; in Benchmark() 148 shape.rows = explicit_rows; in Benchmark() 151 if (!shape.rows || !shape.depth || !shape.cols) { in Benchmark() 187 printf("%d", shape.rows); in Benchmark() 189 printf(",%.4g", 2.0e-9 * shape.rows * shape.cols * shape.depth / in Benchmark() 204 "%s,%dx%dx%d,%.4g", PathName(*result).c_str(), shape.rows, in Benchmark() 206 2.0e-9 * shape.rows * shape.cols * shape.depth / result->latency); in Benchmark()
|
A D | matrix_test.cc | 25 EXPECT_EQ(layout.rows(), 0); in TEST() 33 EXPECT_EQ(layout.rows(), 123); in TEST() 42 EXPECT_EQ(layout.rows(), 123); in TEST() 47 EXPECT_EQ(layout.rows(), 321); in TEST() 74 EXPECT_EQ(matrix.layout().rows(), 0); in TEST() 89 EXPECT_EQ(matrix.layout().rows(), 12); in TEST()
|
A D | pack_arm.h | 211 src_matrix.layout.rows, src_matrix.zero_point, 410 src_matrix.layout.rows, packed_ptr); 428 src_matrix.layout.rows, packed_ptr, 486 src_matrix.layout.rows, packed_ptr, 521 for (int block_row = 0; block_row < packed_matrix->layout.rows; 541 if (block_row >= src_matrix.layout.rows - 3) { 542 if (block_row >= src_matrix.layout.rows - 0) { 546 if (block_row >= src_matrix.layout.rows - 1) { 550 if (block_row >= src_matrix.layout.rows - 2) { 554 if (block_row >= src_matrix.layout.rows - 3) { [all …]
|
A D | test.h | 484 layout->set_rows(rows); 509 return layout.stride() == layout.rows(); 546 MakeLayout(rows, cols, order, layout_style, 644 int rows = 0; 1161 int tmp_rows = layout->rows(); 1217 int m = gemm_lhs.layout().rows(); 1352 RUY_CHECK_EQ(matrix1.layout().rows(), matrix2.layout().rows()); 2260 void TestRCC(int rows, int depth, int cols) { 2262 test_set.rows = rows; 2275 test_set.rows = rows; [all …]
|
A D | trmul.cc | 250 int GetTentativeThreadCount(Ctx* ctx, int rows, int cols, int depth) { in GetTentativeThreadCount() argument 261 0, ceil_log2(rows) + ceil_log2(cols) + ceil_log2(depth) - kDivisorLog2); in GetTentativeThreadCount() 268 bool GetUseSimpleLoop(int tentative_thread_count, int rows, int cols, int depth, in GetUseSimpleLoop() argument 273 if (IsObviouslyLinearTraversal(rows, cols, depth, lhs_scalar_size, in GetUseSimpleLoop() 303 const int rows = lhs.layout.cols; in TrMul() local 305 const int depth = lhs.layout.rows; in TrMul() 308 GetTentativeThreadCount(ctx, rows, cols, depth); in TrMul() 321 if (GetUseSimpleLoop(tentative_thread_count, rows, cols, depth, in TrMul()
|
A D | matrix.h | 34 int rows() const { return rows_; } in rows() function 169 inline void MakeSimpleLayout(int rows, int cols, Order order, Layout* layout) { in MakeSimpleLayout() argument 170 layout->set_rows(rows); in MakeSimpleLayout() 173 layout->set_stride(order == Order::kColMajor ? rows : cols); in MakeSimpleLayout() 178 for (int row = 0; row < mat.layout().rows(); row++) {
|
A D | trace.h | 389 formatted("%dx%d, %s", layout.rows(), layout.cols(), str(layout.order())); in str() 391 layout.order() == Order::kRowMajor ? layout.cols() : layout.rows(); in str() 402 formatted("%dx%d, %s", layout.rows, layout.cols, str(layout.order)); in str() 403 int inner_size = layout.order == Order::kRowMajor ? layout.cols : layout.rows; in str() 414 formatted("%dx%d, %s", layout.rows, layout.cols, str(layout.order)); in str() 415 int inner_size = layout.order == Order::kRowMajor ? layout.cols : layout.rows; in str() 421 s += formatted(", kernel blocks: %dx%d %s", layout.kernel.rows, in str() 606 tentative_thread_count, rows, depth, cols, ctx->max_num_threads()); 630 rows, cols); \ 770 if (packed_matrix->layout.rows > src_matrix.layout.rows) { \ [all …]
|
A D | prepacked_cache_test.cc | 31 PEMat MakeDummyPEMat(Type data_type, int rows, int cols) { in MakeDummyPEMat() argument 37 ret.layout.rows = rows; in MakeDummyPEMat() 39 ret.layout.stride = rows; in MakeDummyPEMat() 43 ret.layout.kernel.rows = 1; in MakeDummyPEMat() 202 mat.layout.rows = 9; in TEST() 214 mat.layout.kernel.rows = 2; in TEST()
|
A D | block_map.h | 112 bool IsObviouslyLinearTraversal(int rows, int cols, int depth, 118 void MakeBlockMap(int rows, int cols, int depth, int kernel_rows,
|
/AliOS-Things-master/components/py_engine/modules/minicv/base/modules/ml/include/ |
A D | uai_odla_imgproc.h | 20 ori_img.rows = ori_img_height; in uai_get_split_img_data() 26 new_img.rows = img_height; in uai_get_split_img_data() 37 new_img.rows = img_height; in uai_get_resize_img() 43 resize_img.rows = resize_height; in uai_get_resize_img() 54 old_img.rows = img_height; in uai_convert_img() 60 new_img.rows = img_height; in uai_convert_img() 71 old_img.rows = img_height; in uai_get_gray_img() 77 new_img.rows = img_height; in uai_get_gray_img()
|
/AliOS-Things-master/components/SDL2/src/gfx/ |
A D | SDL_imageFilter.h | 164 …SCOPE int SDL_imageFilterConvolveKernel3x3Divide(unsigned char *Src, unsigned char *Dest, int rows, 168 …SCOPE int SDL_imageFilterConvolveKernel5x5Divide(unsigned char *Src, unsigned char *Dest, int rows, 172 …SCOPE int SDL_imageFilterConvolveKernel7x7Divide(unsigned char *Src, unsigned char *Dest, int rows, 176 …SCOPE int SDL_imageFilterConvolveKernel9x9Divide(unsigned char *Src, unsigned char *Dest, int rows, 180 …E int SDL_imageFilterConvolveKernel3x3ShiftRight(unsigned char *Src, unsigned char *Dest, int rows, 185 …E int SDL_imageFilterConvolveKernel5x5ShiftRight(unsigned char *Src, unsigned char *Dest, int rows, 190 …E int SDL_imageFilterConvolveKernel7x7ShiftRight(unsigned char *Src, unsigned char *Dest, int rows, 195 …E int SDL_imageFilterConvolveKernel9x9ShiftRight(unsigned char *Src, unsigned char *Dest, int rows, 200 …SDL_IMAGEFILTER_SCOPE int SDL_imageFilterSobelX(unsigned char *Src, unsigned char *Dest, int rows,… 203 …int SDL_imageFilterSobelXShiftRight(unsigned char *Src, unsigned char *Dest, int rows, int columns,
|
/AliOS-Things-master/components/freetype/src/base/ |
A D | ftbitmap.c | 65 size = (FT_ULong)( pitch * source->rows ); in FT_Bitmap_Copy() 114 height = bitmap->rows; in ft_bitmap_assure_buffer() 186 for ( i = 0; i < bitmap->rows; i++ ) in ft_bitmap_assure_buffer() 195 for ( i = 0; i < bitmap->rows; i++ ) in ft_bitmap_assure_buffer() 302 for ( y = 0; y < bitmap->rows ; y++ ) in FT_Bitmap_Embolden() 372 bitmap->rows += ystr; in FT_Bitmap_Embolden() 471 target->rows = source->rows; in FT_Bitmap_Convert() 510 for ( i = source->rows; i > 0; i-- ) in FT_Bitmap_Convert() 572 for ( i = source->rows; i > 0; i-- ) in FT_Bitmap_Convert() 592 for ( i = source->rows; i > 0; i-- ) in FT_Bitmap_Convert() [all …]
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/kernels/ |
A D | cpu_backend_gemm_gemmlowp.h | 89 gemmlowp_lhs(lhs_data, lhs_params.rows, lhs_params.cols); 91 gemmlowp_rhs(rhs_data, rhs_params.rows, rhs_params.cols); 93 dst_data, dst_params.rows, dst_params.cols); 109 ColVectorMap bias_vector(params.bias, lhs_params.rows); 149 gemmlowp_lhs(lhs_data, lhs_params.rows, lhs_params.cols); 151 gemmlowp_rhs(rhs_data, rhs_params.rows, rhs_params.cols); 153 dst_data, dst_params.rows, dst_params.cols); 157 ColVectorMap bias_vector(params.bias, lhs_params.rows); 165 ColVectorMap(params.multiplier_fixedpoint_perchannel, dst_params.rows); 167 ColVectorMap(params.multiplier_exponent_perchannel, dst_params.rows);
|
A D | cpu_backend_gemm_params.h | 55 int rows = 0; member 247 valid &= lhs_params.rows >= 1; 249 valid &= rhs_params.rows >= 1; 251 valid &= dst_params.rows >= 1; 253 valid &= lhs_params.cols == rhs_params.rows; 255 valid &= lhs_params.rows == lhs_params.rows;
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/dsp/ |
A D | neon.h | 51 static WEBP_INLINE int32x4x4_t Transpose4x4_NEON(const int32x4x4_t rows) { in Transpose4x4_NEON() argument 54 row01.val[0] = vreinterpretq_u64_s32(rows.val[0]); in Transpose4x4_NEON() 55 row01.val[1] = vreinterpretq_u64_s32(rows.val[1]); in Transpose4x4_NEON() 56 row23.val[0] = vreinterpretq_u64_s32(rows.val[2]); in Transpose4x4_NEON() 57 row23.val[1] = vreinterpretq_u64_s32(rows.val[3]); in Transpose4x4_NEON()
|
A D | enc_neon.c | 96 static WEBP_INLINE void TransformPass_NEON(int16x8x2_t* const rows) { in TransformPass_NEON() argument 101 vcombine_s16(vget_high_s16(rows->val[0]), vget_high_s16(rows->val[1])); in TransformPass_NEON() 106 const int16x4_t a = vqadd_s16(vget_low_s16(rows->val[0]), in TransformPass_NEON() 107 vget_low_s16(rows->val[1])); // in0 + in8 in TransformPass_NEON() 108 const int16x4_t b = vqsub_s16(vget_low_s16(rows->val[0]), in TransformPass_NEON() 119 Transpose8x2_NEON(E0, E1, rows); in TransformPass_NEON() 124 int16x8x2_t rows; in ITransformOne_NEON() local 125 INIT_VECTOR2(rows, vld1q_s16(in + 0), vld1q_s16(in + 8)); in ITransformOne_NEON() 126 TransformPass_NEON(&rows); in ITransformOne_NEON() 127 TransformPass_NEON(&rows); in ITransformOne_NEON() [all …]
|
/AliOS-Things-master/components/freetype/src/sfnt/ |
A D | pngshim.c | 198 png_byte* *rows = NULL; /* pacify compiler */ in Load_SBit_Png() local 210 y_offset + metrics->height > map->rows || in Load_SBit_Png() 267 map->rows = metrics->height; in Load_SBit_Png() 272 size = map->rows * map->pitch; in Load_SBit_Png() 343 if ( FT_NEW_ARRAY( rows, imgHeight ) ) in Load_SBit_Png() 350 rows[i] = map->buffer + ( y_offset + i ) * map->pitch + x_offset * 4; in Load_SBit_Png() 352 png_read_image( png, rows ); in Load_SBit_Png() 354 FT_FREE( rows ); in Load_SBit_Png()
|
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/libtiff/ |
A D | tif_strip.c | 249 uint64 rows; in _TIFFDefaultStripSize() local 253 rows=(uint64)STRIP_SIZE_DEFAULT/scanlinesize; in _TIFFDefaultStripSize() 254 if (rows==0) in _TIFFDefaultStripSize() 255 rows=1; in _TIFFDefaultStripSize() 256 else if (rows>0xFFFFFFFF) in _TIFFDefaultStripSize() 257 rows=0xFFFFFFFF; in _TIFFDefaultStripSize() 258 s=(uint32)rows; in _TIFFDefaultStripSize()
|
/AliOS-Things-master/components/SDL2/src/image/external/jpeg-9b/ |
A D | jmemmgr.c | 694 long bytesperrow, file_offset, byte_count, rows, thisrow, i; in do_sarray_io() local 701 rows = MIN((long) ptr->rowsperchunk, (long) ptr->rows_in_mem - i); in do_sarray_io() 704 rows = MIN(rows, (long) ptr->first_undef_row - thisrow); in do_sarray_io() 706 rows = MIN(rows, (long) ptr->rows_in_array - thisrow); in do_sarray_io() 707 if (rows <= 0) /* this chunk might be past end of file! */ in do_sarray_io() 709 byte_count = rows * bytesperrow; in do_sarray_io() 727 long bytesperrow, file_offset, byte_count, rows, thisrow, i; in do_barray_io() local 737 rows = MIN(rows, (long) ptr->first_undef_row - thisrow); in do_barray_io() 739 rows = MIN(rows, (long) ptr->rows_in_array - thisrow); in do_barray_io() 740 if (rows <= 0) /* this chunk might be past end of file! */ in do_barray_io() [all …]
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/kernels/internal/optimized/integer_ops/ |
A D | fully_connected.h | 65 lhs_params.rows = filter_rows; in FullyConnected() 70 rhs_params.rows = filter_cols; in FullyConnected() 75 dst_params.rows = filter_rows; in FullyConnected()
|
A D | transpose_conv.h | 66 lhs_params.rows = hwoi_ordered_filter_total_size; in TransposeConvV2() 76 rhs_params.rows = input_depth; in TransposeConvV2() 82 dst_params.rows = hwoi_ordered_filter_total_size; in TransposeConvV2()
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/kernels/internal/optimized/ |
A D | batch_matmul.h | 82 lhs_params.rows = lhs_rows; in BatchMatMul() 87 rhs_params.rows = accum_depth; in BatchMatMul() 92 dst_params.rows = lhs_rows; in BatchMatMul() 192 lhs_params.rows = lhs_rows; in BatchMatMul() 197 rhs_params.rows = accum_depth; in BatchMatMul() 202 dst_params.rows = lhs_rows; in BatchMatMul() 336 lhs_params.rows = lhs_rows; in BatchMatMul() 342 rhs_params.rows = accum_depth; in BatchMatMul() 348 dst_params.rows = lhs_rows; in BatchMatMul()
|
/AliOS-Things-master/components/freetype/src/tools/docmaker/ |
A D | tohtml.py | 385 rows = ( count + self.columns - 1 ) / self.columns 388 for r in range( rows ): 391 i = r + c * rows 393 bname = self.block_index[r + c * rows] 489 rows = ( count + columns - 1 ) / columns 491 for r in range( rows ): 494 i = r + c * rows
|