Home
last modified time | relevance | path

Searched refs:num_tables (Results 1 – 25 of 28) sorted by relevance

12

/external/tensorflow/tensorflow/contrib/nearest_neighbor/kernels/
Dhyperplane_lsh_probes.cc54 int num_tables = num_tables_tensor.scalar<int32>()(); in Compute() local
55 OP_REQUIRES(context, num_tables >= 1, in Compute()
57 num_tables, ".")); in Compute()
58 OP_REQUIRES(context, num_tables <= 1000, in Compute()
59 InvalidArgument("Need num_tables <= 1000, got ", num_tables, in Compute()
91 int expected_num_hyperplanes = num_tables * num_hyperplanes_per_table; in Compute()
119 int64 cost_per_unit = 21 * num_hyperplanes_per_table * num_tables; in Compute()
120 if (num_probes > num_tables) { in Compute()
122 110 * num_hyperplanes_per_table * (num_probes - num_tables); in Compute()
127 num_hyperplanes_per_table, num_tables); in Compute()
Dhyperplane_lsh_probes_test.cc99 int num_tables = 10; in TEST() local
100 Multiprobe multiprobe(dim, num_tables); in TEST()
101 Multiprobe::Vector hash_vector(dim * num_tables); in TEST()
105 for (int ii = 0; ii < dim * num_tables; ++ii) { in TEST()
109 std::vector<std::vector<bool>> checked_cell(num_tables); in TEST()
110 for (int ii = 0; ii < num_tables; ++ii) { in TEST()
115 int num_probes = (1 << dim) * num_tables; in TEST()
124 ASSERT_LT(cur_table, num_tables); in TEST()
Dhyperplane_lsh_probes.h45 HyperplaneMultiprobe(int num_hyperplanes_per_table, int num_tables) in HyperplaneMultiprobe() argument
47 num_tables_(num_tables), in HyperplaneMultiprobe()
51 main_table_probe_(num_tables) {} in HyperplaneMultiprobe()
/external/freetype/src/sfnt/
Dttkern.c51 FT_UInt nn, num_tables; in tt_face_load_kern() local
81 num_tables = FT_NEXT_USHORT( p ); in tt_face_load_kern()
83 if ( num_tables > 32 ) /* we only support up to 32 sub-tables */ in tt_face_load_kern()
84 num_tables = 32; in tt_face_load_kern()
86 for ( nn = 0; nn < num_tables; nn++ ) in tt_face_load_kern()
Dsfobjs.c427 FT_FRAME_USHORT( num_tables ), in woff_open_font()
453 woff.num_tables == 0 || in woff_open_font()
454 44 + woff.num_tables * 20UL >= woff.length || in woff_open_font()
455 12 + woff.num_tables * 16UL >= woff.totalSfntSize || in woff_open_font()
467 if ( FT_ALLOC( sfnt, 12 + woff.num_tables * 16UL ) || in woff_open_font()
478 x = woff.num_tables; in woff_open_font()
488 rangeShift = woff.num_tables * 16 - searchRange; in woff_open_font()
491 WRITE_USHORT( sfnt_header, woff.num_tables ); in woff_open_font()
501 if ( FT_NEW_ARRAY( tables, woff.num_tables ) || in woff_open_font()
502 FT_NEW_ARRAY( indices, woff.num_tables ) ) in woff_open_font()
[all …]
Dttload.c76 limit = entry + face->num_tables; in tt_face_lookup_table()
202 for ( nn = 0; nn < sfnt->num_tables; nn++ ) in check_table_dir()
212 nn, nn == 1 ? "" : "s", sfnt->num_tables )); in check_table_dir()
213 sfnt->num_tables = nn; in check_table_dir()
358 FT_FRAME_USHORT( num_tables ), in tt_face_load_font_dir()
379 sfnt.search_range + sfnt.range_shift != sfnt.num_tables << 4 ) in tt_face_load_font_dir()
385 FT_TRACE2(( "-- Number of tables: %10u\n", sfnt.num_tables )); in tt_face_load_font_dir()
400 valid_entries = sfnt.num_tables; in tt_face_load_font_dir()
402 face->num_tables = valid_entries; in tt_face_load_font_dir()
405 if ( FT_QNEW_ARRAY( face->dir_tables, face->num_tables ) ) in tt_face_load_font_dir()
[all …]
Dsfdriver.c135 *length = face->num_tables; in sfnt_table_info()
138 if ( idx >= face->num_tables ) in sfnt_table_info()
/external/harfbuzz_ng/src/
Dmain.cc94 int num_tables = font.get_table_count (); in main() local
95 printf (" %d table(s) found in font\n", num_tables); in main()
96 for (int n_table = 0; n_table < num_tables; n_table++) { in main()
98 printf (" Table %2d of %2d: %.4s (0x%08x+0x%08x)\n", n_table, num_tables, in main()
/external/sfntly/cpp/src/test/
Dserialization_test.cc53 EXPECT_EQ(original->num_tables(), serialized->num_tables()); in TestSerialization()
119 EXPECT_EQ(original->num_tables(), serialized->num_tables()); in TestSerializationBitmap()
/external/tensorflow/tensorflow/contrib/nearest_neighbor/python/ops/
Dnearest_neighbor_ops.py30 num_tables, argument
59 num_tables,
/external/tensorflow/tensorflow/contrib/nearest_neighbor/python/kernel_tests/
Dhyperplane_lsh_probes_test.py38 num_tables = 2
42 num_tables,
/external/u-boot/drivers/input/
Dinput.c253 assert(config->num_tables > 0); in process_modifier()
255 for (i = 1; i < config->num_tables; i++) { in process_modifier()
380 if (!config->num_tables) { in input_check_keycodes()
588 if (config->num_tables == INPUT_MAX_MODIFIERS) { in input_add_table()
593 table = &config->table[config->num_tables++]; in input_add_table()
/external/freetype/include/freetype/internal/
Dtttypes.h112 FT_UShort num_tables; member
172 FT_UShort num_tables; member
1611 FT_UShort num_tables; member
/external/sfntly/cpp/src/sample/subtly/
Dmerger_main.cc37 if (!font || font->num_tables() == 0) { in CheckLoading()
Dsubsetter_main.cc47 if (font->num_tables() == 0) { in main()
/external/u-boot/include/
Dinput.h47 uchar num_tables; /* number of modifier tables */ member
/external/freetype/src/type42/
Dt42parse.c544 FT_Int num_tables = 0; in t42_parse_sfnts() local
697 num_tables = 16 * face->ttf_data[4] + face->ttf_data[5]; in t42_parse_sfnts()
699 face->ttf_size = 12 + 16 * num_tables; in t42_parse_sfnts()
726 for ( i = 0; i < num_tables; i++ ) in t42_parse_sfnts()
747 if ( FT_REALLOC( face->ttf_data, 12 + 16 * num_tables, in t42_parse_sfnts()
/external/sfntly/cpp/src/sfntly/
Dfont.h245 int32_t num_tables() { return (int32_t)tables_.size(); } in num_tables() function
Dfont.cc97 int32_t table_offset = Offset::kTableRecordBegin + num_tables() * in BuildTableHeadersForSerialization()
/external/bcc/src/cc/
Dbpf_module.h97 size_t num_tables() const;
Dbpf_common.cc104 return mod->num_tables(); in bpf_num_tables()
/external/bcc/src/cc/includes/
Dbpf_module.h97 size_t num_tables() const;
/external/syzkaller/executor/
Dcommon_linux.h1032 static void checkpoint_iptables(struct ipt_table_desc* tables, int num_tables, int family, int leve… in checkpoint_iptables() argument
1047 for (i = 0; i < num_tables; i++) { in checkpoint_iptables()
1087 static void reset_iptables(struct ipt_table_desc* tables, int num_tables, int family, int level) in reset_iptables() argument
1104 for (i = 0; i < num_tables; i++) { in reset_iptables()
/external/freetype/src/truetype/
Dttpload.c137 TT_Table limit = entry + face->num_tables; in tt_face_load_loca()
Dttobjs.c450 for ( i = 0; i < face->num_tables; i++ ) in tt_check_trickyness_sfnt_ids()

12