Home
last modified time | relevance | path

Searched refs:num_points (Results 1 – 25 of 38) sorted by relevance

12

/external/tensorflow/tensorflow/contrib/factorization/kernels/
Dclustering_ops.cc100 const int64 num_points = points_tensor.dim_size(0); in Compute() local
110 OP_REQUIRES(context, num_points > 0, in Compute()
114 OP_REQUIRES(context, num_to_sample <= num_points, in Compute()
116 num_to_sample, " vs ", num_points, ".")); in Compute()
125 points_tensor.matrix<float>().data(), num_points, point_dimensions); in Compute()
138 from = std::min(from, num_points - 1); in Compute()
145 Eigen::VectorXf min_distances(num_points); in Compute()
147 Eigen::VectorXf min_distances_cumsum(num_points); in Compute()
150 if (sampled_indices.empty()) return rng.Uniform64(num_points); in Compute()
158 min_distances_cumsum.data() + num_points, in Compute()
[all …]
Dclustering_ops_test.cc50 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/tensorflow/tensorflow/contrib/learn/python/learn/estimators/
Dkmeans_test.py62 def make_random_points(centers, num_points, max_offset=20): argument
64 assignments = np.random.choice(num_centers, num_points)
66 np.random.randn(num_points, num_dims).astype(np.float32) * max_offset)
81 num_points = points.shape[0]
88 if batch_size == num_points:
94 maxval=num_points - 1,
100 q = data_flow_ops.FIFOQueue(num_points, dtypes.int32, ())
105 [q.enqueue_many(math_ops.range(num_points))]):
129 return self.num_points
146 self.num_points = 1000
[all …]
/external/tensorflow/tensorflow/contrib/factorization/python/ops/
Dkmeans_test.py60 def make_random_points(centers, num_points, max_offset=20): argument
62 assignments = np.random.choice(num_centers, num_points)
64 np.random.randn(num_points, num_dims).astype(np.float32) * max_offset)
79 num_points = points.shape[0]
86 if batch_size == num_points:
92 maxval=num_points - 1,
98 q = data_flow_ops.FIFOQueue(num_points, dtypes.int32, ())
103 [q.enqueue_many(math_ops.range(num_points))]):
127 return self.num_points
144 self.num_points = 1000
[all …]
Dgmm_test.py41 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 …]
Dgmm_ops.py56 num_points = math_ops.to_float(array_ops.shape(x)[0])
60 math_ops.square(x), 0, keep_dims=True) / (num_points - 1)
62 cov = math_ops.matmul(x, x, transpose_a=True) / (num_points - 1)
/external/freetype/src/base/
Dftstroke.c314 FT_UInt num_points; member
331 FT_UInt new_max = border->num_points + new_points; in ft_stroke_border_grow()
361 FT_UInt count = border->num_points; in ft_stroke_border_close()
368 border->num_points = start; in ft_stroke_border_close()
373 border->num_points = --count; in ft_stroke_border_close()
435 border->points[border->num_points - 1] = *to; in ft_stroke_border_lineto()
440 if ( border->num_points > 0 && in ft_stroke_border_lineto()
441 FT_IS_SMALL( border->points[border->num_points - 1].x - to->x ) && in ft_stroke_border_lineto()
442 FT_IS_SMALL( border->points[border->num_points - 1].y - to->y ) ) in ft_stroke_border_lineto()
449 FT_Vector* vec = border->points + border->num_points; in ft_stroke_border_lineto()
[all …]
Dftgloadr.c369 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/
Dmodel_ops.cc95 DimensionHandle num_points = c->UnknownDim(); in __anon53416c650102() local
99 num_points = c->Dim(c->input(1), 0); in __anon53416c650102()
102 c->set_output(0, c->Matrix(num_points, c->UnknownDim())); in __anon53416c650102()
130 DimensionHandle num_points = c->UnknownDim(); in __anon53416c650202() local
134 num_points = c->Dim(c->input(1), 0); in __anon53416c650202()
137 c->set_output(0, c->Vector(num_points)); in __anon53416c650202()
/external/flac/libFLAC/
Dmetadata_object.c169 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 …]
Dformat.c243 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/
Drandom_fourier_features_test.py129 num_points = 20
141 for _ in xrange(num_points)
161 total_absolute_error.eval() / (num_points * num_points),
/external/freetype/src/autofit/
Dafwarp.c173 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()
Dafhints.c308 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 …]
Dafhints.h345 FT_Int num_points; /* number of used points */ member
/external/freetype/src/pshinter/
Dpshalgo.c1046 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 …]
Dpshalgo.h191 FT_UInt num_points; member
/external/tensorflow/tensorflow/contrib/tensor_forest/hybrid/core/ops/
Dstochastic_hard_routing_gradient_op.cc60 auto num_points = c->Dim(input, 0); in __anon5a0ddaf10102() local
64 c->set_output(0, c->Matrix(num_points, num_nodes)); in __anon5a0ddaf10102()
66 c->set_output(2, c->MakeShape({num_points, num_nodes, num_features})); in __anon5a0ddaf10102()
Dunpack_path_op.cc41 auto num_points = c->Dim(input, 0); in __anon7c8f4b380102() local
49 c->set_output(0, c->Matrix(num_points, num_nodes)); in __anon7c8f4b380102()
/external/freetype/src/type1/
Dt1load.c215 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()
512 design = ( designs[map->num_points - 1] - designs[0] ) / 2; in T1_Set_MM_Design()
514 for ( p = 0; p < (FT_UInt)map->num_points; p++ ) in T1_Set_MM_Design()
540 the_blend = blends[map->num_points - 1]; in T1_Set_MM_Design()
682 dmap->num_points = 0; in T1_Done_Blend()
908 FT_Int p, num_points; in parse_blend_design_map() local
916 T1_MAX_MM_MAP_POINTS, &num_points ); in parse_blend_design_map()
918 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/
Dclustering_ops_test.py150 num_points = 1000
156 assert num_points % points_per_tile == 0
178 np.tile(x, (int(num_points / points_per_tile), 1))
/external/freetype/src/pfr/
Dpfrgload.c767 FT_Int i, old_points, num_points; in pfr_glyph_load_rec() local
784 num_points = base->n_points - old_points; in pfr_glyph_load_rec()
792 for ( i = 0; i < num_points; i++, vec++ ) in pfr_glyph_load_rec()
805 for ( i = 0; i < num_points; i++, vec++ ) in pfr_glyph_load_rec()
/external/freetype/src/psaux/
Dt1decode.c882 FT_UInt num_points, nn, mm; in t1_decoder_parse_charstrings() local
894 num_points = (FT_UInt)subr_no - 13 + ( subr_no == 18 ); in t1_decoder_parse_charstrings()
895 if ( arg_cnt != (FT_Int)( num_points * blend->num_designs ) ) in t1_decoder_parse_charstrings()
918 delta = top + num_points; in t1_decoder_parse_charstrings()
920 for ( nn = 0; nn < num_points; nn++ ) in t1_decoder_parse_charstrings()
933 known_othersubr_result_cnt = (FT_Int)num_points; in t1_decoder_parse_charstrings()
Dpsintrp.c1810 FT_UInt num_points, nn, mm; in cf2_interpT2CharString() local
1824 num_points = (FT_UInt)subr_no - 13 + in cf2_interpT2CharString()
1826 if ( arg_cnt != (FT_Int)( num_points * in cf2_interpT2CharString()
1852 delta = opIdx + num_points; in cf2_interpT2CharString()
1854 for ( nn = 0; nn < num_points; nn++ ) in cf2_interpT2CharString()
1870 (CF2_UInt)arg_cnt - num_points ); in cf2_interpT2CharString()
1872 known_othersubr_result_cnt = (FT_Int)num_points; in cf2_interpT2CharString()
/external/tensorflow/tensorflow/python/kernel_tests/distributions/
Dspecial_math_test.py58 num_points = np.prod(grid_spec.shape)
59 grid = np.linspace(grid_spec.min, grid_spec.max, num=num_points).astype(dtype)
60 grid_spacing = (grid_spec.max - grid_spec.min) / num_points

12