/external/tensorflow/tensorflow/core/kernels/ |
D | clustering_ops.cc | 101 const int64 num_points = points_tensor.dim_size(0); in Compute() local 111 OP_REQUIRES(context, num_points > 0, in Compute() 115 OP_REQUIRES(context, num_to_sample <= num_points, in Compute() 117 num_to_sample, " vs ", num_points, ".")); in Compute() 126 points_tensor.matrix<float>().data(), num_points, point_dimensions); in Compute() 139 from = std::min(from, num_points - 1); in Compute() 146 Eigen::VectorXf min_distances(num_points); in Compute() 148 Eigen::VectorXf min_distances_cumsum(num_points); in Compute() 151 if (sampled_indices.empty()) return rng.Uniform64(num_points); in Compute() 159 min_distances_cumsum.data() + num_points, in Compute() [all …]
|
D | clustering_ops_test.cc | 50 Graph* SetUpKmeansPlusPlusInitialization(int num_dims, int num_points, in SetUpKmeansPlusPlusInitialization() argument 54 Tensor points(DT_FLOAT, TensorShape({num_points, num_dims})); in SetUpKmeansPlusPlusInitialization() 73 template <int num_points, int num_to_sample, int num_dims, 77 testing::ItemsProcessed(static_cast<int64>(iters) * num_points * num_dims * in BM_KmeansPlusPlusInitialization() 81 num_dims, num_points, num_to_sample, retries_per_sample); in BM_KmeansPlusPlusInitialization() 119 Graph* SetUpKMC2Initialization(int num_points) { in SetUpKMC2Initialization() argument 121 Tensor distances(DT_FLOAT, TensorShape({num_points})); in SetUpKMC2Initialization() 134 template <int num_points, int num_to_sample, int num_dims> 137 testing::ItemsProcessed(static_cast<int64>(iters) * num_points * num_dims * in BM_KMC2Initialization() 140 Graph* g = SetUpKMC2Initialization(num_points); in BM_KMC2Initialization() [all …]
|
/external/libaom/libaom/av1/encoder/ |
D | corner_detect.c | 26 int num_points; in fast_corner_detect() local 28 FAST_BARRIER, &num_points); in fast_corner_detect() 29 num_points = (num_points <= max_points ? num_points : max_points); in fast_corner_detect() 30 if (num_points > 0 && frm_corners_xy) { in fast_corner_detect() 31 memcpy(points, frm_corners_xy, sizeof(*frm_corners_xy) * num_points); in fast_corner_detect() 33 return num_points; in fast_corner_detect()
|
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/ |
D | kmeans_test.py | 61 def make_random_points(centers, num_points, max_offset=20): argument 63 assignments = np.random.choice(num_centers, num_points) 65 np.random.randn(num_points, num_dims).astype(np.float32) * max_offset) 80 num_points = points.shape[0] 87 if batch_size == num_points: 93 maxval=num_points - 1, 99 q = data_flow_ops.FIFOQueue(num_points, dtypes.int32, ()) 104 [q.enqueue_many(math_ops.range(num_points))]): 128 return self.num_points 145 self.num_points = 1000 [all …]
|
/external/tensorflow/tensorflow/contrib/factorization/python/ops/ |
D | gmm_test.py | 41 num_points = points.shape[0] 45 if batch_size == num_points: 48 minval=0, maxval=num_points-1, 59 self.num_points = 4000 60 self.batch_size = self.num_points 64 self.true_centers, self.num_points) 78 def make_random_points(centers, num_points): argument 80 assignments = np.random.choice(num_centers, num_points) 82 np.random.randn(num_points, num_dims).astype(np.float32) * 20) 112 score1 = gmm.score(input_fn=self.input_fn(batch_size=self.num_points), [all …]
|
D | kmeans_test.py | 61 def make_random_points(centers, num_points, max_offset=20): argument 63 assignments = np.random.choice(num_centers, num_points) 65 np.random.randn(num_points, num_dims).astype(np.float32) * max_offset) 80 num_points = points.shape[0] 87 if batch_size == num_points: 93 maxval=num_points - 1, 99 q = data_flow_ops.FIFOQueue(num_points, dtypes.int32, ()) 104 [q.enqueue_many(math_ops.range(num_points))]): 128 return self.num_points 145 self.num_points = 1000 [all …]
|
/external/freetype/src/base/ |
D | ftstroke.c | 309 FT_UInt num_points; member 326 FT_UInt new_max = border->num_points + new_points; in ft_stroke_border_grow() 356 FT_UInt count = border->num_points; in ft_stroke_border_close() 363 border->num_points = start; in ft_stroke_border_close() 368 border->num_points = --count; in ft_stroke_border_close() 430 border->points[border->num_points - 1] = *to; in ft_stroke_border_lineto() 435 if ( border->num_points > 0 && in ft_stroke_border_lineto() 436 FT_IS_SMALL( border->points[border->num_points - 1].x - to->x ) && in ft_stroke_border_lineto() 437 FT_IS_SMALL( border->points[border->num_points - 1].y - to->y ) ) in ft_stroke_border_lineto() 444 FT_Vector* vec = border->points + border->num_points; in ft_stroke_border_lineto() [all …]
|
D | ftgloadr.c | 369 FT_UInt num_points = (FT_UInt)source->base.outline.n_points; in FT_GlyphLoader_CopyPoints() local 373 error = FT_GlyphLoader_CheckPoints( target, num_points, num_contours ); in FT_GlyphLoader_CopyPoints() 381 num_points ); in FT_GlyphLoader_CopyPoints() 383 num_points ); in FT_GlyphLoader_CopyPoints() 391 num_points ); in FT_GlyphLoader_CopyPoints() 393 num_points ); in FT_GlyphLoader_CopyPoints() 396 out->n_points = (short)num_points; in FT_GlyphLoader_CopyPoints()
|
/external/tensorflow/tensorflow/contrib/tensor_forest/ops/ |
D | model_ops.cc | 95 DimensionHandle num_points = c->UnknownDim(); in __anon85a5c2880102() local 99 num_points = c->Dim(c->input(1), 0); in __anon85a5c2880102() 102 c->set_output(0, c->Matrix(num_points, c->UnknownDim())); in __anon85a5c2880102() 130 DimensionHandle num_points = c->UnknownDim(); in __anon85a5c2880202() local 134 num_points = c->Dim(c->input(1), 0); in __anon85a5c2880202() 137 c->set_output(0, c->Vector(num_points)); in __anon85a5c2880202()
|
/external/flac/libFLAC/ |
D | metadata_object.c | 169 object->length = object->data.seek_table.num_points * FLAC__STREAM_METADATA_SEEKPOINT_LENGTH; in seektable_calculate_length_() 172 static FLAC__StreamMetadata_SeekPoint *seekpoint_array_new_(unsigned num_points) in seekpoint_array_new_() argument 176 FLAC__ASSERT(num_points > 0); in seekpoint_array_new_() 178 object_array = safe_malloc_mul_2op_p(num_points, /*times*/sizeof(FLAC__StreamMetadata_SeekPoint)); in seekpoint_array_new_() 182 for (i = 0; i < num_points; i++) { in seekpoint_array_new_() 548 to->data.seek_table.num_points = object->data.seek_table.num_points; in FLAC__metadata_object_clone() 549 …if (to->data.seek_table.num_points > UINT32_MAX / sizeof(FLAC__StreamMetadata_SeekPoint)) { /* ove… in FLAC__metadata_object_clone() 553 …, (FLAC__byte*)object->data.seek_table.points, object->data.seek_table.num_points * sizeof(FLAC__S… in FLAC__metadata_object_clone() 739 if (block1->num_points != block2->num_points) in compare_block_data_seektable_() 743 for (i = 0; i < block1->num_points; i++) { in compare_block_data_seektable_() [all …]
|
D | format.c | 243 for(i = 0; i < seek_table->num_points; i++) { in FLAC__format_seektable_is_legal() 278 if (seek_table->num_points == 0) in FLAC__format_seektable_sort() 282 …qsort(seek_table->points, seek_table->num_points, sizeof(FLAC__StreamMetadata_SeekPoint), (int (*)… in FLAC__format_seektable_sort() 286 for(i = j = 0; i < seek_table->num_points; i++) { in FLAC__format_seektable_sort() 297 for(i = j; i < seek_table->num_points; i++) { in FLAC__format_seektable_sort()
|
/external/tensorflow/tensorflow/contrib/kernel_methods/python/mappers/ |
D | random_fourier_features_test.py | 129 num_points = 20 137 for _ in xrange(num_points) 157 total_absolute_error.eval() / (num_points * num_points),
|
/external/freetype/src/autofit/ |
D | afwarp.c | 173 FT_Int nn, num_points, num_segments; in af_warper_compute() local 202 num_points = hints->num_points; in af_warper_compute() 213 for ( nn = 1; nn < num_points; nn++ ) in af_warper_compute()
|
D | afhints.c | 308 AF_Point limit = points + hints->num_points; in af_glyph_hints_dump_points() 316 if ( hints->num_points ) in af_glyph_hints_dump_points() 711 hints->num_points = 0; in af_glyph_hints_done() 745 hints->num_points = 0; in af_glyph_hints_reload() 807 hints->num_points = outline->n_points; in af_glyph_hints_reload() 832 if ( hints->num_points == 0 ) in af_glyph_hints_reload() 837 AF_Point point_limit = points + hints->num_points; in af_glyph_hints_reload() 1150 AF_Point limit = point + hints->num_points; in af_glyph_hints_save() 1260 AF_Point point_limit = points + hints->num_points; in af_glyph_hints_align_strong_points() 1511 AF_Point point_limit = points + hints->num_points; in af_glyph_hints_align_weak_points() [all …]
|
/external/freetype/src/pshinter/ |
D | pshalgo.c | 1046 glyph->num_points = 0; in psh_glyph_done() 1086 FT_UInt count = glyph->num_points; in psh_glyph_load_points() 1124 for ( n = 0; n < glyph->num_points; n++ ) in psh_glyph_save_points() 1174 glyph->num_points = (FT_UInt)outline->n_points; in psh_glyph_init() 1224 for ( n = 0; n < glyph->num_points; n++, point++ ) in psh_glyph_init() 1362 for ( n = 0; n < glyph->num_points; n++ ) in psh_glyph_compute_extrema() 1587 if ( num_masks > 1 && glyph->num_points > 0 ) in psh_glyph_find_strong_points() 1590 first = mask->end_point > glyph->num_points in psh_glyph_find_strong_points() 1591 ? glyph->num_points in psh_glyph_find_strong_points() 1596 FT_UInt next = FT_MIN( mask->end_point, glyph->num_points ); in psh_glyph_find_strong_points() [all …]
|
/external/tensorflow/tensorflow/contrib/tensor_forest/hybrid/core/ops/ |
D | stochastic_hard_routing_gradient_op.cc | 60 auto num_points = c->Dim(input, 0); in __anon2a31cb540102() local 64 c->set_output(0, c->Matrix(num_points, num_nodes)); in __anon2a31cb540102() 66 c->set_output(2, c->MakeShape({num_points, num_nodes, num_features})); in __anon2a31cb540102()
|
D | unpack_path_op.cc | 41 auto num_points = c->Dim(input, 0); in __anon3ff10bbb0102() local 49 c->set_output(0, c->Matrix(num_points, num_nodes)); in __anon3ff10bbb0102()
|
/external/freetype/src/type1/ |
D | t1load.c | 215 axis->maximum = map->design_points[map->num_points - 1]; in T1_Get_Multi_Master() 240 for ( j = 1; j < axismap->num_points; j++ ) in mm_axis_unmap() 250 return INT_TO_FIXED( axismap->design_points[axismap->num_points - 1] ); in mm_axis_unmap() 509 design = ( designs[map->num_points - 1] - designs[0] ) / 2; in T1_Set_MM_Design() 511 for ( p = 0; p < (FT_UInt)map->num_points; p++ ) in T1_Set_MM_Design() 537 the_blend = blends[map->num_points - 1]; in T1_Set_MM_Design() 679 dmap->num_points = 0; in T1_Done_Blend() 920 FT_Int p, num_points; in parse_blend_design_map() local 928 T1_MAX_MM_MAP_POINTS, &num_points ); in parse_blend_design_map() 932 if ( num_points <= 0 || num_points > T1_MAX_MM_MAP_POINTS ) in parse_blend_design_map() [all …]
|
/external/tensorflow/tensorflow/contrib/factorization/python/kernel_tests/ |
D | clustering_ops_test.py | 150 num_points = 1000 156 assert num_points % points_per_tile == 0 178 np.tile(x, (int(num_points / points_per_tile), 1))
|
/external/tensorflow/tensorflow/python/ops/ |
D | clustering_ops_test.py | 155 num_points = 1000 161 assert num_points % points_per_tile == 0 183 np.tile(x, (int(num_points / points_per_tile), 1))
|
/external/libaom/libaom/aom_dsp/ |
D | noise_model.c | 215 int aom_noise_strength_lut_init(aom_noise_strength_lut_t *lut, int num_points) { in aom_noise_strength_lut_init() argument 217 lut->points = (double(*)[2])aom_malloc(num_points * sizeof(*lut->points)); in aom_noise_strength_lut_init() 219 lut->num_points = num_points; in aom_noise_strength_lut_init() 220 memset(lut->points, 0, sizeof(*lut->points) * num_points); in aom_noise_strength_lut_init() 235 for (i = 0; i < lut->num_points - 1; ++i) { in aom_noise_strength_lut_eval() 243 return lut->points[lut->num_points - 1][1]; in aom_noise_strength_lut_eval() 349 for (int i = AOMMAX(start, 1); i < AOMMIN(end, lut->num_points - 1); ++i) { in update_piecewise_linear_residual() 396 while (lut->num_points > 2) { in aom_noise_strength_solver_fit_piecewise() 398 for (int j = 1; j < lut->num_points - 1; ++j) { in aom_noise_strength_solver_fit_piecewise() 406 if (lut->num_points <= max_output_points && avg_residual > kTolerance) { in aom_noise_strength_solver_fit_piecewise() [all …]
|
D | noise_model.h | 38 int num_points; member 42 int aom_noise_strength_lut_init(aom_noise_strength_lut_t *lut, int num_points);
|
/external/grpc-grpc/examples/php/route_guide/ |
D | route_guide_client.php | 116 $num_points = 10; 117 for ($i = 0; $i < $num_points; ++$i) {
|
/external/tensorflow/tensorflow/contrib/image/python/kernel_tests/ |
D | sparse_image_warp_test.py | 50 num_points = locs.shape[0] 51 self.assertEqual(num_points, 4 + 4 * num_points_per_edge) 52 locs = [(locs[i, 0], locs[i, 1]) for i in range(num_points)]
|
/external/grpc-grpc/examples/node/dynamic_codegen/route_guide/ |
D | route_guide_client.js | 121 var num_points = 10; 156 for (var i = 0; i < num_points; i++) {
|