/external/tensorflow/tensorflow/python/kernel_tests/ |
D | spacetodepth_op_test.py | 37 def _testOne(self, inputs, block_size, outputs, dtype=dtypes.float32): argument 41 x_tf = array_ops.space_to_depth(input_nhwc, block_size) 47 x_tf = array_ops.space_to_depth(input_nhwc, block_size) 52 input_nchw, block_size, data_format="NCHW") 58 block_size = 2 61 self._testOne(x_np, block_size, x_out, dtype=dtype) 69 block_size = 2 72 self._testOne(x_np, block_size, x_out) 79 block_size = 4 81 self._testOne(x_np, block_size, x_out) [all …]
|
D | depthtospace_op_test.py | 38 def _testOne(self, inputs, block_size, outputs, dtype=dtypes.float32): argument 42 x_tf = array_ops.depth_to_space(input_nhwc, block_size) 47 x_tf = array_ops.depth_to_space(input_nhwc, block_size) 52 input_nchw, block_size, data_format="NCHW") 59 block_size = 2 61 self._testOne(x_np, block_size, x_out) 66 block_size = 2 68 self._testOne(x_np, block_size, x_out, dtype=dtypes.float16) 78 block_size = 2 83 self._testOne(x_np, block_size, x_out) [all …]
|
D | spacetobatch_op_test.py | 103 def _testPad(self, inputs, paddings, block_size, outputs): argument 109 block_size=block_size) 115 block_size=block_size) 118 def _testOne(self, inputs, block_size, outputs): argument 120 self._testPad(inputs, paddings, block_size, outputs) 126 block_size = 2 128 self._testOne(x_np, block_size, x_out) 135 block_size = 3 138 self._testPad(x_np, paddings, block_size, x_out) 145 block_size = 2 [all …]
|
D | batchtospace_op_test.py | 57 block_size = 2 60 y1 = self.batch_to_space(x, crops, block_size=block_size) 63 array_ops.transpose(x, [3, 1, 2, 0]), block_size=block_size), 80 block_size = 2 82 _ = self.batch_to_space(x_np, crops, block_size) 89 block_size = 0 91 out_tf = self.batch_to_space(x_np, crops, block_size) 99 block_size = 1 101 out_tf = self.batch_to_space(x_np, crops, block_size) 109 block_size = 10 [all …]
|
/external/ltp/testcases/kernel/syscalls/fallocate/ |
D | fallocate04.c | 37 static size_t block_size; variable 52 block_size = file_stat.st_blksize; in get_blocksize() 53 buf_size = NUM_OF_BLOCKS * block_size; in get_blocksize() 73 memset(buf + i * block_size, 'a' + i, block_size); in fill_tst_buf() 126 block_size, block_size) == -1) { in test02() 137 if (ret != (ssize_t)block_size) { in test02() 158 if ((alloc_size0 - block_size) != alloc_size1) in test02() 164 memset(exp_buf + block_size, 0, block_size); in test02() 184 if (fallocate(fd, FALLOC_FL_ZERO_RANGE, block_size - 1, in test03() 185 block_size + 2) == -1) { in test03() [all …]
|
/external/tensorflow/tensorflow/core/platform/cloud/ |
D | ram_file_block_cache_test.cc | 135 for (size_t block_size = 2; block_size <= 4; block_size++) { in TEST() local 138 RamFileBlockCache cache(block_size, block_size, 0, fetcher); in TEST() 140 for (size_t n = block_size - 2; n <= block_size + 2; n++) { in TEST() 146 EXPECT_EQ(got.size(), n) << "block size = " << block_size in TEST() 151 << "block size = " << block_size << ", offset = " << offset in TEST() 159 EXPECT_EQ(got, want) << "block size = " << block_size in TEST() 167 const size_t block_size = 16; in TEST() local 169 auto fetcher = [&calls, block_size](const string& filename, size_t offset, in TEST() 172 EXPECT_EQ(n, block_size); in TEST() 173 EXPECT_EQ(offset % block_size, 0); in TEST() [all …]
|
/external/libaom/libaom/aom_dsp/ |
D | noise_util.c | 23 float aom_noise_psd_get_default_value(int block_size, float factor) { in aom_noise_psd_get_default_value() argument 24 return (factor * factor / 10000) * block_size * block_size / 8; in aom_noise_psd_get_default_value() 33 int block_size; member 38 struct aom_noise_tx_t *aom_noise_tx_malloc(int block_size) { in aom_noise_tx_malloc() argument 43 switch (block_size) { in aom_noise_tx_malloc() 66 fprintf(stderr, "Unsupported block size %d\n", block_size); in aom_noise_tx_malloc() 69 noise_tx->block_size = block_size; in aom_noise_tx_malloc() 71 32, 2 * sizeof(*noise_tx->tx_block) * block_size * block_size); in aom_noise_tx_malloc() 73 32, 2 * sizeof(*noise_tx->temp) * block_size * block_size); in aom_noise_tx_malloc() 81 2 * sizeof(*noise_tx->tx_block) * block_size * block_size); in aom_noise_tx_malloc() [all …]
|
D | noise_model.c | 33 int block_size) { \ 34 const int max_h = AOMMIN(h - y_o, block_size); \ 35 const int max_w = AOMMIN(w - x_o, block_size); \ 50 int block_size, int use_highbd) { in get_block_mean() argument 53 block_size); in get_block_mean() 54 return get_block_mean_lowbd(data, w, h, stride, x_o, y_o, block_size); in get_block_mean() 423 int block_size, int bit_depth, int use_highbd) { in aom_flat_block_finder_init() argument 424 const int n = block_size * block_size; in aom_flat_block_finder_init() 431 block_size); in aom_flat_block_finder_init() 440 block_size); in aom_flat_block_finder_init() [all …]
|
/external/tensorflow/tensorflow/core/kernels/ |
D | depthtospace_op_gpu.cu.cc | 36 const int block_size, const int batch_size, in D2S_NHWC() argument 50 const int in_h = h / block_size; in D2S_NHWC() 51 const int offset_h = h % block_size; in D2S_NHWC() 52 const int in_w = w / block_size; in D2S_NHWC() 53 const int offset_w = w % block_size; in D2S_NHWC() 54 const int offset_d = (offset_h * block_size + offset_w) * output_depth; in D2S_NHWC() 67 const int block_size, const int input_width, in D2S_NCHW() argument 84 const int n_bY = n_bY_bX / block_size; in D2S_NCHW() 85 const int bX = n_bY_bX - n_bY * block_size; in D2S_NCHW() 87 const int n = n_bY / block_size; in D2S_NCHW() [all …]
|
D | spacetodepth_op_gpu.cu.cc | 34 const int block_size, const int batch_size, in S2D_NHWC() argument 48 const int out_h = h / block_size; in S2D_NHWC() 49 const int offset_h = h % block_size; in S2D_NHWC() 50 const int out_w = w / block_size; in S2D_NHWC() 51 const int offset_w = w % block_size; in S2D_NHWC() 52 const int offset_d = (offset_h * block_size + offset_w) * input_depth; in S2D_NHWC() 66 const int block_size, const int output_width, in S2D_NCHW() argument 78 const int n_iC_oY_bY_oX = input_idx / block_size; in S2D_NCHW() 79 const int bX = input_idx - n_iC_oY_bY_oX * block_size; in S2D_NCHW() 84 const int n_iC_oY = n_iC_oY_bY / block_size; in S2D_NCHW() [all …]
|
/external/squashfs-tools/squashfs-tools/ |
D | compressor.h | 47 int block_size, int datablock) in compressor_init() argument 51 return comp->init(stream, block_size, datablock); in compressor_init() 56 void *dest, void *src, int size, int block_size, int *error) in compressor_compress() argument 58 return comp->compress(strm, dest, src, size, block_size, error); in compressor_compress() 63 void *src, int size, int block_size, int *error) in compressor_uncompress() argument 65 return comp->uncompress(dest, src, size, block_size, error); in compressor_uncompress() 83 static inline int compressor_options_post(struct compressor *comp, int block_size) in compressor_options_post() argument 87 return comp->options_post(block_size); in compressor_options_post() 92 int block_size, int *size) in compressor_dump_options() argument 96 return comp->dump_options(block_size, size); in compressor_dump_options() [all …]
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | triangular_solve_expander.cc | 39 XlaOp DiagonalBlocks(XlaOp a, int64 block_size) { in DiagonalBlocks() argument 45 int64 num_blocks = n / block_size; in DiagonalBlocks() 51 if (n == block_size) { in DiagonalBlocks() 59 if (n > block_size) { in DiagonalBlocks() 63 ConstantR0<int32>(builder, block_size)), in DiagonalBlocks() 80 slice_sizes[ndims - 2] = slice_sizes[ndims - 1] = block_size; in DiagonalBlocks() 91 if (n % block_size != 0) { in DiagonalBlocks() 94 SliceInMinorDims(a, {n - n % block_size, n - n % block_size}, {n, n}); in DiagonalBlocks() 96 int64 padding = block_size - n % block_size; in DiagonalBlocks() 112 if (n > block_size) { in DiagonalBlocks() [all …]
|
/external/boringssl/src/crypto/cmac/ |
D | cmac.c | 178 size_t block_size = EVP_CIPHER_block_size(cipher); in CMAC_Init() local 179 if ((block_size != AES_BLOCK_SIZE && block_size != 8 /* 3-DES */) || in CMAC_Init() 182 !EVP_Cipher(&ctx->cipher_ctx, scratch, kZeroIV, block_size) || in CMAC_Init() 188 if (block_size == AES_BLOCK_SIZE) { in CMAC_Init() 206 size_t block_size = EVP_CIPHER_CTX_block_size(&ctx->cipher_ctx); in CMAC_Update() local 207 assert(block_size <= AES_BLOCK_SIZE); in CMAC_Update() 211 size_t todo = block_size - ctx->block_used; in CMAC_Update() 230 assert(ctx->block_used == block_size); in CMAC_Update() 232 if (!EVP_Cipher(&ctx->cipher_ctx, scratch, ctx->block, block_size)) { in CMAC_Update() 238 while (in_len > block_size) { in CMAC_Update() [all …]
|
/external/e2fsprogs/lib/ext2fs/ |
D | sparse_io.c | 43 int block_size; member 54 unsigned int block_size; member 76 if (!nr_blocks || len % sm->block_size) in sparse_import_segment() 103 sm->block_size = sparse_file_block_size(sparse_file); in io_manager_import_sparse() 105 / sm->block_size + 1; in io_manager_import_sparse() 111 io->block_size = sm->block_size; in io_manager_import_sparse() 140 if (!params->block_size || !params->blocks_count) { in io_manager_configure() 144 sm->block_size = params->block_size; in io_manager_configure() 152 io->block_size = sm->block_size; in io_manager_configure() 153 img_size = (uint64_t)sm->block_size * sm->blocks_count; in io_manager_configure() [all …]
|
/external/libaom/libaom/test/ |
D | horver_correlation_test.cc | 51 for (int block_size = 0; block_size < BLOCK_SIZES_ALL; block_size++) { in RunHorverTest() local 52 const int w = block_size_wide[block_size]; in RunHorverTest() 53 const int h = block_size_high[block_size]; in RunHorverTest() 81 for (int block_size = 0; block_size < BLOCK_SIZES_ALL; block_size++) { in RunHorverSpeedTest() local 82 const int w = block_size_wide[block_size]; in RunHorverSpeedTest() 83 const int h = block_size_high[block_size]; in RunHorverSpeedTest() 114 for (int block_size = 0; block_size < BLOCK_SIZES_ALL; block_size++) { in RunHorverTest_ExtremeValues() local 115 const int w = block_size_wide[block_size]; in RunHorverTest_ExtremeValues() 116 const int h = block_size_high[block_size]; in RunHorverTest_ExtremeValues()
|
D | error_block_test.cc | 36 intptr_t block_size, int64_t *ssz, int bps); 64 intptr_t block_size; in TEST_P() local 72 block_size = 16 << (i % 9); // All block sizes from 4x4, 8x4 ..64x64 in TEST_P() 73 for (int j = 0; j < block_size; j++) { in TEST_P() 87 ref_error_block_op_(coeff, dqcoeff, block_size, &ref_ssz, bit_depth_); in TEST_P() 89 ret = error_block_op_(coeff, dqcoeff, block_size, &ssz, bit_depth_)); in TEST_P() 107 intptr_t block_size; in TEST_P() local 122 block_size = 16 << (i % 9); // All block sizes from 4x4, 8x4 ..64x64 in TEST_P() 123 for (int j = 0; j < block_size; j++) { in TEST_P() 145 ref_error_block_op_(coeff, dqcoeff, block_size, &ref_ssz, bit_depth_); in TEST_P() [all …]
|
/external/webrtc/talk/session/media/ |
D | planarfunctions_unittest.cc | 136 int block_size, in CreateFakeYuvTestingImage() argument 141 if (height <= 0 || width <= 0 || block_size <= 0) { return NULL; } in CreateFakeYuvTestingImage() 174 int color = ((i / block_size) + (j / block_size)) % kTestingColorNum; in CreateFakeYuvTestingImage() 195 int block_size, in CreateFakeInterleaveYuvTestingImage() argument 198 if (height <= 0 || width <= 0 || block_size <= 0) { return NULL; } in CreateFakeInterleaveYuvTestingImage() 214 int color1 = ((i / block_size) + (j / block_size)) % in CreateFakeInterleaveYuvTestingImage() 216 int color2 = (((i + 1) / block_size) + (j / block_size)) % in CreateFakeInterleaveYuvTestingImage() 241 int color1 = ((i / block_size) + (j / block_size)) % in CreateFakeInterleaveYuvTestingImage() 243 int color2 = (((i + 1) / block_size) + (j / block_size)) % in CreateFakeInterleaveYuvTestingImage() 280 int block_size, in CreateFakeNV12TestingImage() argument [all …]
|
/external/libaom/libaom/av1/encoder/ |
D | hash_motion.c | 95 static int hash_block_size_to_index(int block_size) { in hash_block_size_to_index() argument 96 switch (block_size) { in hash_block_size_to_index() 234 int block_size, in av1_generate_block_hash_value() argument 241 const int x_end = picture->y_crop_width - block_size + 1; in av1_generate_block_hash_value() 242 const int y_end = picture->y_crop_height - block_size + 1; in av1_generate_block_hash_value() 244 const int src_size = block_size >> 1; in av1_generate_block_hash_value() 245 const int quad_size = block_size >> 2; in av1_generate_block_hash_value() 284 pos += block_size - 1; in av1_generate_block_hash_value() 287 if (block_size >= 4) { in av1_generate_block_hash_value() 288 const int size_minus_1 = block_size - 1; in av1_generate_block_hash_value() [all …]
|
/external/e2fsprogs/ext2ed/ |
D | file_com.c | 35 file_info.global_block_offset=ptr->i_block [0]*file_system_info.block_size; in init_file_info() 37 file_info.blocks_count=(ptr->i_size+file_system_info.block_size-1)/file_system_info.block_size; in init_file_info() 45 low_read (file_info.buffer,file_system_info.block_size,file_info.global_block_offset); in init_file_info() 86 file_info.global_block_offset=file_info.global_block_num*file_system_info.block_size; in type_file___nextblock() 87 file_info.file_offset=file_info.block_num*file_system_info.block_size; in type_file___nextblock() 89 low_read (file_info.buffer,file_system_info.block_size,file_info.global_block_offset); in type_file___nextblock() 107 if (file_info.offset_in_block+offset < file_system_info.block_size) { in type_file___next() 134 if (offset < file_system_info.block_size) { in type_file___offset() 187 file_info.global_block_offset=file_info.global_block_num*file_system_info.block_size; in type_file___prevblock() 188 file_info.file_offset=file_info.block_num*file_system_info.block_size; in type_file___prevblock() [all …]
|
/external/e2fsprogs/misc/ |
D | badblocks.c | 367 static int do_read (int dev, unsigned char * buffer, int try, int block_size, in do_read() argument 378 set_o_direct(dev, buffer, try * block_size, in do_read() 379 ((ext2_loff_t) current_block) * block_size); in do_read() 385 if (ext2fs_llseek (dev, (ext2_loff_t) current_block * block_size, in do_read() 386 SEEK_SET) != (ext2_loff_t) current_block * block_size) in do_read() 392 got = read (dev, buffer, try * block_size); in do_read() 399 got /= block_size; in do_read() 443 static int do_write(int dev, unsigned char * buffer, int try, int block_size, in do_write() argument 451 set_o_direct(dev, buffer, try * block_size, in do_write() 452 ((ext2_loff_t) current_block) * block_size); in do_write() [all …]
|
/external/tensorflow/tensorflow/compiler/tests/ |
D | spacetobatch_op_test.py | 74 def _testPad(self, inputs, paddings, block_size, outputs): argument 80 placeholder, paddings, block_size=block_size) 84 placeholder, paddings, block_size=block_size) 87 def _testOne(self, inputs, block_size, outputs): argument 89 self._testPad(inputs, paddings, block_size, outputs) 94 block_size = 2 96 self._testOne(x_np, block_size, x_out) 102 block_size = 3 105 self._testPad(x_np, paddings, block_size, x_out) 111 block_size = 2 [all …]
|
/external/libvpx/libvpx/test/ |
D | vp9_block_error_test.cc | 36 intptr_t block_size, int64_t *ssz, 44 intptr_t block_size, int64_t *ssz); 48 const tran_low_t *dqcoeff, intptr_t block_size, in BlockError8BitWrapper() argument 51 return fn(coeff, dqcoeff, block_size, ssz); in BlockError8BitWrapper() 77 intptr_t block_size; in TEST_P() local 85 block_size = 16 << (i % 9); // All block sizes from 4x4, 8x4 ..64x64 in TEST_P() 86 for (int j = 0; j < block_size; j++) { in TEST_P() 100 ref_error_block_op_(coeff, dqcoeff, block_size, &ref_ssz, bit_depth_); in TEST_P() 102 ret = error_block_op_(coeff, dqcoeff, block_size, &ssz, bit_depth_)); in TEST_P() 120 intptr_t block_size; in TEST_P() local [all …]
|
/external/libaom/libaom/examples/ |
D | noise_model.c | 109 int block_size; member 148 noise_args->block_size = atoi(arg.val); in parse_args() 179 int block_size, aom_film_grain_t *grain) { in print_variance_y() argument 191 const int num_blocks_w = (raw->w + block_size - 1) / block_size; in print_variance_y() 192 const int num_blocks_h = (raw->h + block_size - 1) / block_size; in print_variance_y() 199 for (int yi = 0; yi < block_size; ++yi) { in print_variance_y() 200 const int y = by * block_size + yi; in print_variance_y() 201 for (int xi = 0; xi < block_size; ++xi) { in print_variance_y() 202 const int x = bx * block_size + xi; in print_variance_y() 217 int n = (block_size * block_size); in print_variance_y() [all …]
|
/external/tensorflow/tensorflow/core/api_def/base_api/ |
D | api_def_SpaceToBatch.pbtxt | 22 The attr `block_size` must be greater than one. It indicates the block size. 24 * Non-overlapping blocks of size `block_size x block size` in the height and 26 * The batch of the output tensor is `batch * block_size * block_size`. 27 * Both height_pad and width_pad must be divisible by block_size. 31 [batch*block_size*block_size, height_pad/block_size, width_pad/block_size, 36 (1) For the following input of shape `[1, 2, 2, 1]` and block_size of 2: 48 (2) For the following input of shape `[1, 2, 2, 3]` and block_size of 2: 61 (3) For the following input of shape `[1, 4, 4, 1]` and block_size of 2: 79 (4) For the following input of shape `[2, 2, 4, 1]` and block_size of 2:
|
/external/autotest/client/site_tests/platform_DMVerityBitCorruption/ |
D | platform_DMVerityBitCorruption.py | 17 def mod_tweak_block(self, run_count, backing_path, block_size, argument 20 run_count, backing_path, block_size, block_count)) 23 dev.seek(run_count * block_size + self._adjustment) 25 dev.seek(run_count * block_size + self._adjustment) 29 def mod_tweak_hash_block(self, run_count, backing_path, block_size, argument 32 run_count, backing_path, block_size, block_count)) 35 dev.seek(block_count * block_size, os.SEEK_SET) 36 dev.seek(run_count * block_size + self._adjustment, os.SEEK_CUR) 39 dev.seek(block_count * block_size, os.SEEK_SET) 40 dev.seek(run_count * block_size + self._adjustment, os.SEEK_CUR)
|