/external/tensorflow/tensorflow/core/tpu/kernels/ |
D | tpu_embedding_load_retrieve_ops.cc | 53 const int num_tables = config.table_descriptor_size(); in ComputeExpectedTableShardShapes() local 56 if (num_tables != shape_protos.size()) { in ComputeExpectedTableShardShapes() 59 " must be the same as the number of tables ", num_tables); in ComputeExpectedTableShardShapes() 61 for (int table_id = 0; table_id < num_tables; ++table_id) { in ComputeExpectedTableShardShapes() 131 const int num_tables = state_variable[0].size(); in GetStateVariables() local 134 CHECK_EQ(num_tables, state_variable[i].size()); in GetStateVariables() 137 OP_REQUIRES(ctx, num_tables == table_shapes_.size(), in GetStateVariables() 139 "LoadAllTPUEmbeddingParametersOp has ", num_tables, in GetStateVariables() 143 CHECK_EQ(num_tables, config_.table_descriptor_size()); in GetStateVariables() 144 for (int table_id = 0; table_id < num_tables; ++table_id) { in GetStateVariables() [all …]
|
/external/freetype/src/sfnt/ |
D | sfwoff.c | 125 FT_FRAME_USHORT( num_tables ), in woff_open_font() 151 woff.num_tables == 0 || in woff_open_font() 152 44 + woff.num_tables * 20UL >= woff.length || in woff_open_font() 153 12 + woff.num_tables * 16UL >= woff.totalSfntSize || in woff_open_font() 175 x = woff.num_tables; in woff_open_font() 185 rangeShift = woff.num_tables * 16 - searchRange; in woff_open_font() 188 WRITE_USHORT( sfnt_header, woff.num_tables ); in woff_open_font() 198 if ( FT_QNEW_ARRAY( tables, woff.num_tables ) || in woff_open_font() 199 FT_QNEW_ARRAY( indices, woff.num_tables ) ) in woff_open_font() 206 if ( FT_FRAME_ENTER( 20L * woff.num_tables ) ) in woff_open_font() [all …]
|
D | sfwoff2.c | 343 FT_UShort num_tables, in find_table() argument 349 for ( i = 0; i < num_tables; i++ ) in find_table() 1288 FT_UShort num_tables, in get_x_mins() argument 1302 const WOFF2_Table maxp_table = find_table( tables, num_tables, in get_x_mins() 1304 const WOFF2_Table head_table = find_table( tables, num_tables, in get_x_mins() 1551 FT_UShort num_tables = woff2->num_tables; in reconstruct_font() local 1552 FT_ULong dest_offset = 12 + num_tables * 16UL; in reconstruct_font() 1566 info->glyf_table = find_table( indices, num_tables, TTAG_glyf ); in reconstruct_font() 1567 info->loca_table = find_table( indices, num_tables, TTAG_loca ); in reconstruct_font() 1595 for ( nn = 0; nn < num_tables; nn++ ) in reconstruct_font() [all …]
|
D | ttkern.c | 50 FT_UInt nn, num_tables; in tt_face_load_kern() local 80 num_tables = FT_NEXT_USHORT( p ); in tt_face_load_kern() 82 if ( num_tables > 32 ) /* we only support up to 32 sub-tables */ in tt_face_load_kern() 83 num_tables = 32; in tt_face_load_kern() 85 for ( nn = 0; nn < num_tables; nn++ ) in tt_face_load_kern()
|
D | ttload.c | 75 limit = entry + face->num_tables; in tt_face_lookup_table() 201 for ( nn = 0; nn < sfnt->num_tables; nn++ ) in check_table_dir() 210 nn, nn == 1 ? "" : "s", sfnt->num_tables )); in check_table_dir() 211 sfnt->num_tables = nn; in check_table_dir() 356 FT_FRAME_USHORT( num_tables ), in tt_face_load_font_dir() 377 sfnt.search_range + sfnt.range_shift != sfnt.num_tables << 4 ) in tt_face_load_font_dir() 383 FT_TRACE2(( "-- Number of tables: %10hu\n", sfnt.num_tables )); in tt_face_load_font_dir() 399 valid_entries = sfnt.num_tables; in tt_face_load_font_dir() 408 face->num_tables = valid_entries; in tt_face_load_font_dir() 411 if ( FT_QNEW_ARRAY( face->dir_tables, face->num_tables ) ) in tt_face_load_font_dir() [all …]
|
/external/harfbuzz_ng/src/ |
D | hb-subset.cc | 160 unsigned num_tables = hb_face_get_table_tags (plan->source, 0, nullptr, nullptr); in _get_table_tags() local 161 if (num_tables) in _get_table_tags() 351 unsigned offset = 0, num_tables = ARRAY_LENGTH (table_tags); in _is_table_present() local 352 while (((void) hb_face_get_table_tags (source, offset, &num_tables, table_tags), num_tables)) in _is_table_present() 354 for (unsigned i = 0; i < num_tables; ++i) in _is_table_present() 357 offset += num_tables; in _is_table_present() 570 unsigned offset = 0, num_tables = ARRAY_LENGTH (table_tags); in hb_subset_plan_execute_or_fail() local 573 while (((void) _get_table_tags (plan, offset, &num_tables, table_tags), num_tables)) in hb_subset_plan_execute_or_fail() 575 for (unsigned i = 0; i < num_tables; ++i) in hb_subset_plan_execute_or_fail() 582 offset += num_tables; in hb_subset_plan_execute_or_fail()
|
D | hb-ot-color-cbdt-table.hh | 55 unsigned int num_tables; /* INOUT member 487 bitmap_size_context->num_tables += 1; in add_new_record() 549 const IndexSubtableRecord* record = find_table (old_gid, bitmap_size_context->num_tables); in build_lookup() 584 bitmap_size_context->num_tables = 0; in subset() 663 bitmap_size_context.num_tables = numberOfIndexSubtables; in subset() 673 !bitmap_size_context.num_tables || in subset() 678 out_table->numberOfIndexSubtables = bitmap_size_context.num_tables; in subset()
|
D | main.cc | 402 unsigned num_tables = font.get_table_count (); in print_layout_info_using_private_api() local 403 printf (" %d table(s) found in font\n", num_tables); in print_layout_info_using_private_api() 404 for (unsigned n_table = 0; n_table < num_tables; ++n_table) in print_layout_info_using_private_api() 407 printf (" Table %2d of %2d: %.4s (0x%08x+0x%08x)\n", n_table, num_tables, in print_layout_info_using_private_api()
|
/external/tensorflow/tensorflow/python/tpu/tests/ |
D | tpu_embedding_v2_initialization_test.py | 68 num_tables = 30 69 table_dim = np.random.randint(1, 128, size=[num_tables]) 70 table_vocab_size = np.random.randint(100, 1000, size=[num_tables]) 71 table_names = ['table{}'.format(i) for i in range(num_tables)]
|
D | tpu_embedding_v2_valid_input_test.py | 221 num_tables = 30 222 table_dim = np.random.randint(1, 128, size=[num_tables]) 223 table_vocab_size = np.random.randint(100, 1000, size=[num_tables]) 224 table_names = ['table{}'.format(i) for i in range(num_tables)]
|
/external/tensorflow/tensorflow/core/tpu/ops/ |
D | tpu_embedding_ops.cc | 328 int num_tables; in __anon8e82fb570802() local 329 TF_RETURN_IF_ERROR(c->GetAttr("NumTables", &num_tables)); in __anon8e82fb570802() 330 TF_RET_CHECK(num_tables == table_shapes.size()); in __anon8e82fb570802() 331 TF_RET_CHECK(num_tables == config.table_descriptor_size()); in __anon8e82fb570802() 387 int num_tables; in __anon8e82fb570a02() local 388 TF_RETURN_IF_ERROR(c->GetAttr("num_tables", &num_tables)); in __anon8e82fb570a02() 389 if (c->num_outputs() != num_tables) { in __anon8e82fb570a02() 393 c->num_outputs(), num_tables)); in __anon8e82fb570a02()
|
/external/freetype/include/freetype/internal/ |
D | wofftypes.h | 49 FT_UShort num_tables; member 128 FT_UShort num_tables; member 158 FT_UShort num_tables; member
|
D | tttypes.h | 110 FT_UShort num_tables; member 1469 FT_UShort num_tables; member
|
/external/sfntly/cpp/src/test/ |
D | serialization_test.cc | 53 EXPECT_EQ(original->num_tables(), serialized->num_tables()); in TestSerialization() 119 EXPECT_EQ(original->num_tables(), serialized->num_tables()); in TestSerializationBitmap()
|
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v2/ |
D | XlaRecvTPUEmbeddingActivations.pbtxt | 10 number_attr: "num_tables" 13 name: "num_tables"
|
/external/flatbuffers/rust/flatbuffers/src/ |
D | verifier.rs | 226 num_tables: usize, field 235 num_tables: 0, in new() 243 self.num_tables = 0; in reset() 244 self.num_tables = 0; in reset() 335 self.num_tables += 1; in visit_table() 336 if self.num_tables > self.opts.max_tables { in visit_table()
|
/external/tensorflow/tensorflow/core/tpu/graph_rewrite/ |
D | combine_tpu_embedding_load_retrieve_pass.cc | 199 const int num_tables = tpu_embedding_config.table_descriptor_size(); in GetLoadOrRetrieveNodesByTable() local 201 nodes_per_table->resize(num_tables, nullptr); in GetLoadOrRetrieveNodesByTable() 203 is_debug_load_retrieve_node->resize(num_tables, false); in GetLoadOrRetrieveNodesByTable() 227 if (table_id < 0 || table_id >= num_tables) { in GetLoadOrRetrieveNodesByTable() 255 for (int table_id = 0; table_id < num_tables; ++table_id) { in GetLoadOrRetrieveNodesByTable() 286 const int num_tables = tpu_embedding_config.table_descriptor_size(); in CombinePerTableParametersForLoad() local 290 v.resize(num_tables, Port{nullptr, 0}); in CombinePerTableParametersForLoad() 292 for (int table_id = 0; table_id < num_tables; ++table_id) { in CombinePerTableParametersForLoad()
|
/external/sfntly/cpp/src/sample/subtly/ |
D | merger_main.cc | 37 if (!font || font->num_tables() == 0) { in CheckLoading()
|
D | subsetter_main.cc | 47 if (font->num_tables() == 0) { in main()
|
/external/freetype/src/type42/ |
D | t42parse.c | 540 FT_Int num_tables = 0; in t42_parse_sfnts() local 718 num_tables = 16 * face->ttf_data[4] + face->ttf_data[5]; in t42_parse_sfnts() 720 ttf_reserved = 12 + 16 * num_tables; in t42_parse_sfnts() 723 num_tables )); in t42_parse_sfnts() 756 for ( i = 0; i < num_tables; i++ ) in t42_parse_sfnts()
|
/external/tensorflow/tensorflow/compiler/xla/stream_executor/tpu/ |
D | c_api_conversions.cc | 396 std::unique_ptr<TpuEmbeddingEngineParametersData> Create(int num_tables) { in Create() argument 398 data->c_params.num_tables = num_tables; in Create() 400 data->vectors[i].resize(num_tables); in Create()
|
D | c_api_conversions.h | 107 std::unique_ptr<TpuEmbeddingEngineParametersData> Create(int num_tables);
|
/external/tensorflow/tensorflow/core/api_def/base_api/ |
D | api_def_XlaRecvTPUEmbeddingActivations.pbtxt | 23 name: "num_tables"
|
/external/tensorflow/tensorflow/dtensor/cc/ |
D | dtensor_device_util.cc | 1108 const int64_t& num_tables = table_id_node_map->size(); in InsertFunctionForTPUEmbeddingCheckpoint() local 1113 func_inputs.reserve(num_tables); in InsertFunctionForTPUEmbeddingCheckpoint() 1114 input_types.reserve(num_tables); in InsertFunctionForTPUEmbeddingCheckpoint() 1116 for (int i = 0; i < num_tables; ++i) { in InsertFunctionForTPUEmbeddingCheckpoint() 1144 for (int i = 0; i < num_tables; ++i) { in InsertFunctionForTPUEmbeddingCheckpoint()
|
/external/sfntly/cpp/src/sfntly/ |
D | font.h | 245 int32_t num_tables() { return (int32_t)tables_.size(); } in num_tables() function
|