MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ParseReplicaGroupsOnly

Method ParseReplicaGroupsOnly

tensorflow/compiler/xla/service/hlo_parser.cc:2120–2129  ·  view source on GitHub ↗

replica_groups ::='{' int64list_elements '}' int64list_elements ::= /*empty*/ ::= int64list (',' int64list) int64list ::= '{' int64_elements '}' int64_elements ::= /*empty*/ ::= int64_val (',' int64_val)

Source from the content-addressed store, hash-verified

2118// ::= /*empty*/
2119// ::= int64_val (',' int64_val)*
2120bool HloParserImpl::ParseReplicaGroupsOnly(
2121 std::vector<ReplicaGroup>* replica_groups) {
2122 std::vector<std::vector<int64>> result;
2123 if (!ParseInt64ListList(TokKind::kLbrace, TokKind::kRbrace, TokKind::kComma,
2124 &result)) {
2125 return false;
2126 }
2127 *replica_groups = CreateReplicaGroups(result);
2128 return true;
2129}
2130
2131// domain ::= '{' 'kind=' domain_kind ',' 'entry=' entry_sharding ','
2132// 'exit=' exit_sharding '}'

Callers 1

ParseReplicaGroupsOnlyFunction · 0.80

Calls 5

ParseReplicaGroupsOnlyFunction · 0.85
InvalidArgumentFunction · 0.85
LexMethod · 0.80
GetKindMethod · 0.80
CreateReplicaGroupsFunction · 0.70

Tested by

no test coverage detected