Searched refs:shards_ (Results 1 – 2 of 2) sorted by relevance
/external/libtextclassifier/native/utils/grammar/utils/ |
D | ir.h | 103 shards_(locale_shard_map_.GetNumberOfShards()) {} in Ir() 152 return AddRule(lhs, rhs, &shards_[shard].unary_rules); 160 return AddRule(lhs, {rhs_1, rhs_2}, &shards_[shard].binary_rules); 192 const std::vector<RulesShard>& shards() const { return shards_; } in shards() 233 std::vector<RulesShard> shards_; variable
|
D | ir.cc | 230 TC3_CHECK_LT(shard, shards_.size()); in Add() 232 return AddRule(lhs, terminal, &shards_[shard].terminal_rules); in Add() 234 return AddRule(lhs, terminal, &shards_[shard].lowercase_terminal_rules); in Add() 282 terminal_rules_sets.reserve(2 * shards_.size()); in SerializeTerminalRules() 284 for (int i = 0; i < shards_.size(); i++) { in SerializeTerminalRules() 285 terminal_rules_sets.push_back(&shards_[i].terminal_rules); in SerializeTerminalRules() 286 terminal_rules_sets.push_back(&shards_[i].lowercase_terminal_rules); in SerializeTerminalRules() 449 for (int i = 0; i < shards_.size(); i++) { in Serialize() 468 SerializeUnaryRulesShard(shards_[i].unary_rules, output, rules); in Serialize() 470 SerializeBinaryRulesShard(shards_[i].binary_rules, output, rules); in Serialize()
|