/external/ruy/ruy/ |
D | block_map_test.cc | 44 BlockMap block_map; in MakeBlockMapTuningTest() local 47 &block_map); in MakeBlockMapTuningTest() 48 EXPECT_EQ(block_map.num_blocks_base_log2, expected_num_blocks_base_log2); in MakeBlockMapTuningTest() 49 EXPECT_EQ(std::min(block_map.rectangularness_log2[Side::kLhs], in MakeBlockMapTuningTest() 50 block_map.rectangularness_log2[Side::kRhs]), in MakeBlockMapTuningTest() 52 EXPECT_EQ(std::max(block_map.rectangularness_log2[Side::kLhs], in MakeBlockMapTuningTest() 53 block_map.rectangularness_log2[Side::kRhs]), in MakeBlockMapTuningTest() 155 BlockMap block_map; in GetBlockByIndexSquareTest() local 156 block_map.thread_count = 1; in GetBlockByIndexSquareTest() 157 block_map.traversal_order = traversal_order; in GetBlockByIndexSquareTest() [all …]
|
D | block_map.cc | 92 void GetBlockByIndex(const BlockMap& block_map, int index, in GetBlockByIndex() argument 98 1u << (2 * block_map.num_blocks_base_log2); in GetBlockByIndex() 102 const int size_log2 = block_map.num_blocks_base_log2; in GetBlockByIndex() 104 switch (block_map.traversal_order) { in GetBlockByIndex() 115 RUY_DCHECK(block_map.traversal_order == BlockMapTraversalOrder::kLinear); in GetBlockByIndex() 121 index_u32 >> 2 * block_map.num_blocks_base_log2; in GetBlockByIndex() 123 const std::uint32_t mask = (1u << block_map.rectangularness_log2[side]) - 1; in GetBlockByIndex() 125 << block_map.num_blocks_base_log2; in GetBlockByIndex() 341 const CpuCacheParams& cpu_cache_params, BlockMap* block_map) { in MakeBlockMap() argument 450 block_map->dims[Side::kLhs] = rows; in MakeBlockMap() [all …]
|
D | block_map.h | 121 const CpuCacheParams& cpu_cache_params, BlockMap* block_map); 124 void GetBlockByIndex(const BlockMap& block_map, int index, 131 void GetBlockMatrixCoords(Side side, const BlockMap& block_map, int block, 137 void GetBlockMatrixCoords(const BlockMap& block_map, const SidePair<int>& block, 142 inline int NumBlocksPerSide(Side side, const BlockMap& block_map) { in NumBlocksPerSide() argument 143 return 1 << (block_map.num_blocks_base_log2 + in NumBlocksPerSide() 144 block_map.rectangularness_log2[side]); in NumBlocksPerSide() 154 inline int NumBlocks(const BlockMap& block_map) { in NumBlocks() argument 155 return 1 << (2 * block_map.num_blocks_base_log2 + in NumBlocks() 156 block_map.rectangularness_log2[Side::kLhs] + in NumBlocks() [all …]
|
D | trace.h | 669 block_map->small_block_dims[Side::kLhs], \ 670 block_map->small_block_dims[Side::kRhs], \ 671 block_map->small_block_dims[Side::kLhs] + \ 672 block_map->kernel_dims[Side::kLhs], \ 673 block_map->small_block_dims[Side::kRhs] + \ 674 block_map->kernel_dims[Side::kRhs]); \ 678 block_map->large_blocks[Side::kLhs], \ 679 block_map->small_block_dims[Side::kLhs] + \ 680 block_map->kernel_dims[Side::kLhs], \ 681 block_map->small_block_dims[Side::kLhs]); \ [all …]
|
D | trmul.cc | 58 TrMulTask(TrMulParams* params, const BlockMap& block_map, in TrMulTask() argument 64 block_map_(block_map), in TrMulTask() 338 BlockMap block_map; in TrMul() local 342 tentative_thread_count, cpu_cache_params, &block_map); in TrMul() 345 const int thread_count = block_map.thread_count; in TrMul() 358 const int size = NumBlocksPerSide(side, block_map); in TrMul() 383 new (tasks + i) TrMulTask(params, block_map, atomic_block_id, i, in TrMul()
|
/external/e2fsprogs/lib/ext2fs/ |
D | rw_bitmaps.c | 76 retval = ext2fs_get_block_bitmap_range2(fs->block_map, in write_bitmaps() 165 ext2fs_block_bitmap bmap = fs->block_map; in mark_uninit_bg_group_blocks() 239 if (fs->block_map) in read_bitmaps() 240 ext2fs_free_block_bitmap(fs->block_map); in read_bitmaps() 243 retval = ext2fs_allocate_block_bitmap(fs, buf, &fs->block_map); in read_bitmaps() 296 retval = ext2fs_set_block_bitmap_range2(fs->block_map, in read_bitmaps() 335 retval = ext2fs_set_block_bitmap_range2(fs->block_map, in read_bitmaps() 399 ext2fs_free_mem(&fs->block_map); in read_bitmaps() 400 fs->block_map = 0; in read_bitmaps() 437 if (fs->inode_map && fs->block_map) in ext2fs_read_bitmaps() [all …]
|
D | tst_bitmaps.c | 171 ext2fs_free_block_bitmap(test_fs->block_map); in setup_filesystem() 172 test_fs->block_map = 0; in setup_filesystem() 176 &test_fs->block_map); in setup_filesystem() 293 dump_bitmap(test_fs->block_map, test_fs->super->s_first_data_block, in dump_block_bitmap_cmd() 321 ext2fs_mark_block_bitmap_range2(test_fs->block_map, in do_setb() 327 test_result = ext2fs_test_block_bitmap2(test_fs->block_map, block); in do_setb() 328 op_result = ext2fs_mark_block_bitmap2(test_fs->block_map, block); in do_setb() 360 ext2fs_unmark_block_bitmap_range2(test_fs->block_map, in do_clearb() 366 test_result = ext2fs_test_block_bitmap2(test_fs->block_map, block); in do_clearb() 367 op_result = ext2fs_unmark_block_bitmap2(test_fs->block_map, block); in do_clearb() [all …]
|
D | dupfs.c | 40 fs->block_map = 0; in ext2fs_dup_handle() 78 if (src->block_map) { in ext2fs_dup_handle() 79 retval = ext2fs_copy_bitmap(src->block_map, &fs->block_map); in ext2fs_dup_handle()
|
D | alloc_stats.c | 73 ext2fs_mark_block_bitmap2(fs->block_map, blk); in ext2fs_block_alloc_stats2() 75 ext2fs_unmark_block_bitmap2(fs->block_map, blk); in ext2fs_block_alloc_stats2() 123 ext2fs_mark_block_bitmap_range2(fs->block_map, blk, num); in ext2fs_block_alloc_stats_range() 126 ext2fs_unmark_block_bitmap_range2(fs->block_map, blk, num); in ext2fs_block_alloc_stats_range()
|
D | freefs.c | 41 if (fs->block_map) in ext2fs_free() 42 ext2fs_free_block_bitmap(fs->block_map); in ext2fs_free()
|
D | imager.c | 346 if (!fs->block_map) { in ext2fs_image_bitmap_write() 351 bmap = fs->block_map; in ext2fs_image_bitmap_write() 421 if (!fs->block_map) { in ext2fs_image_bitmap_read() 426 bmap = fs->block_map; in ext2fs_image_bitmap_read()
|
D | bb_inode.c | 66 if (!fs->block_map) in ext2fs_update_bb_inode() 241 if (ext2fs_test_block_bitmap2(fs->block_map, blk)) in set_bad_block_proc()
|
/external/e2fsprogs/contrib/android/ |
D | basefs_allocator.c | 38 ext2fs_unmark_block_bitmap2(fs->block_map, block); in fs_free_blocks_range() 61 ext2fs_unmark_block_bitmap2(fs->block_map, block); in fs_free_blocks_bitmap() 112 if (ext2fs_test_block_bitmap2(fs->block_map, block)) { in fs_reserve_block() 119 ext2fs_mark_block_bitmap2(fs->block_map, block); in fs_reserve_block() 296 ext2fs_unmark_block_bitmap2(fs->block_map, block); in skip_blocks() 319 retval = ext2fs_new_block2(fs, goal, fs->block_map, ret); in basefs_block_allocator() 321 ext2fs_mark_block_bitmap2(fs->block_map, *ret); in basefs_block_allocator()
|
D | ext2simg.c | 125 first_blk = ext2fs_get_block_bitmap_start2(fs->block_map); in ext_to_sparse() 126 last_blk = ext2fs_get_block_bitmap_end2(fs->block_map); in ext_to_sparse() 145 if (ext2fs_test_block_bitmap2(fs->block_map, cur_blk)) { in ext_to_sparse()
|
/external/e2fsprogs/e2fsck/ |
D | pass5.c | 168 retval = ext2fs_get_block_bitmap_range2(ctx->fs->block_map, in check_block_bitmap_checksum() 352 ext2fs_get_block_bitmap_start2(fs->block_map)) || in check_block_bitmaps() 354 ext2fs_get_block_bitmap_end2(fs->block_map))) { in check_block_bitmaps() 358 pctx.ino = ext2fs_get_block_bitmap_start2(fs->block_map); in check_block_bitmaps() 359 pctx.ino2 = ext2fs_get_block_bitmap_end2(fs->block_map); in check_block_bitmaps() 400 retval = ext2fs_get_block_bitmap_range2(fs->block_map, in check_block_bitmaps() 417 bitmap = ext2fs_fast_test_block_bitmap2(fs->block_map, i); in check_block_bitmaps() 510 ext2fs_free_block_bitmap(fs->block_map); in check_block_bitmaps() 512 &fs->block_map); in check_block_bitmaps() 519 ext2fs_set_bitmap_padding(fs->block_map); in check_block_bitmaps() [all …]
|
/external/tensorflow/tensorflow/lite/tools/optimize/sparsity/ |
D | format_converter.cc | 56 const std::vector<int>& block_size, const std::vector<int>& block_map) in FormatConverter() argument 60 block_map_(block_map) { in FormatConverter() 64 format_.resize(shape.size() + block_map.size()); in FormatConverter() 68 if (block_dim < block_map.size() && block_map[block_dim] == i) { in FormatConverter() 77 for (int i = 0; i < block_map.size(); i++) { in FormatConverter() 225 block_map_ = TfLiteIntArrayToVector(sparsity.block_map); in FormatConverter()
|
D | format_converter_test.cc | 427 const std::vector<int> block_map = {0, 1}; in TEST() local 429 block_size, block_map); in TEST() 463 const std::vector<int> block_map = {1}; in TEST() local 465 block_size, block_map); in TEST() 501 const std::vector<int> block_map = {0, 1}; in TEST() local 503 block_size, block_map); in TEST() 539 const std::vector<int> block_map = {0, 1}; in TEST() local 541 block_size, block_map); in TEST() 577 const std::vector<int> block_map = {0, 1}; in TEST() local 579 block_size, block_map); in TEST() [all …]
|
/external/tensorflow/tensorflow/lite/tools/optimize/sparsity/python/ |
D | format_converter_extension_test.py | 45 block_map = [0, 1] 48 block_size, block_map)
|
/external/tensorflow/tensorflow/lite/c/ |
D | common.c | 119 if (sparsity->block_map) { in TfLiteSparsityFree() 120 TfLiteIntArrayFree(sparsity->block_map); in TfLiteSparsityFree() 121 sparsity->block_map = NULL; in TfLiteSparsityFree()
|
/external/tensorflow/tensorflow/lite/ |
D | model_test.cc | 433 TfLiteIntArray* block_map = TfLiteIntArrayCreate(2); in TEST() local 434 block_map->data[0] = 0; in TEST() 435 block_map->data[1] = 1; in TEST() 436 ASSERT_TRUE(TfLiteIntArrayEqual(t1->sparsity->block_map, block_map)); in TEST() 437 TfLiteIntArrayFree(block_map); in TEST()
|
D | interpreter_builder.cc | 446 if (src_sparsity->block_map()) { in ParseSparsity() 447 const size_t block_map_size = src_sparsity->block_map()->size(); in ParseSparsity() 448 sparsity->block_map = TfLiteIntArrayCreate(block_map_size); in ParseSparsity() 450 sparsity->block_map->data[i] = src_sparsity->block_map()->Get(i); in ParseSparsity()
|
/external/e2fsprogs/resize/ |
D | resize2fs.c | 417 rfs->new_fs->block_map, b); in move_bg_metadata() 464 ext2fs_unmark_block_bitmap2(rfs->new_fs->block_map, b); in move_bg_metadata() 598 ext2fs_unmark_block_bitmap_range2(fs->block_map, blk, in fix_uninit_block_bitmaps() 601 ext2fs_reserve_super_and_bgd(fs, g, fs->block_map); in fix_uninit_block_bitmaps() 602 ext2fs_mark_block_bitmap2(fs->block_map, in fix_uninit_block_bitmaps() 604 ext2fs_mark_block_bitmap2(fs->block_map, in fix_uninit_block_bitmaps() 609 ext2fs_mark_block_bitmap2(fs->block_map, blk); in fix_uninit_block_bitmaps() 799 real_end, fs->block_map); in adjust_fs_info() 939 ext2fs_reserve_super_and_bgd(fs, i, fs->block_map); in adjust_fs_info() 1245 } else if (ext2fs_test_block_bitmap2(rfs->old_fs->block_map, blk) && in mark_fs_metablock() [all …]
|
/external/e2fsprogs/misc/ |
D | mk_hugefiles.c | 310 retval = ext2fs_find_first_zero_block_bitmap2(fs->block_map, in mk_hugefile() 316 retval = ext2fs_find_first_set_block_bitmap2(fs->block_map, goal, in mk_hugefile() 446 retval = ext2fs_find_first_zero_block_bitmap2(fs->block_map, in get_start_block() 451 retval = ext2fs_find_first_set_block_bitmap2(fs->block_map, in get_start_block()
|
/external/tensorflow/tensorflow/lite/kernels/ |
D | test_util.h | 116 std::vector<int> block_size = {}, std::vector<int> block_map = {}, 133 block_map(block_map), in type() 148 std::vector<int> block_map; member 225 t.shape, t.traversal_order, t.format, t.block_size, t.block_map); in AddConstSparseInput() 258 builder_.CreateVector(t.block_map), in AddConstSparseInput() 297 t.shape, t.traversal_order, t.format, t.block_size, t.block_map); 330 builder_.CreateVector(t.block_map),
|
/external/e2fsprogs/debugfs/ |
D | unused.c | 43 if (ext2fs_test_block_bitmap2(current_fs->block_map,blk)) in do_dump_unused()
|