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

Method ParsePaddingConfigOnly

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

Source from the content-addressed store, hash-verified

4275}
4276
4277StatusOr<PaddingConfig> HloParserImpl::ParsePaddingConfigOnly() {
4278 lexer_.Lex();
4279 PaddingConfig padding_config;
4280 if (!ParsePaddingConfig(&padding_config)) {
4281 return InvalidArgument("Syntax error:\n%s", GetError());
4282 }
4283 if (lexer_.GetKind() != TokKind::kEof) {
4284 return InvalidArgument("Syntax error:\nExtra content after PaddingConfig");
4285 }
4286 return padding_config;
4287}
4288
4289bool HloParserImpl::ParseSingleInstruction(HloModule* module) {
4290 if (create_missing_instruction_ != nullptr || !scoped_name_tables_.empty()) {

Callers 1

ParsePaddingConfigFunction · 0.80

Calls 4

ParsePaddingConfigFunction · 0.85
InvalidArgumentFunction · 0.85
LexMethod · 0.80
GetKindMethod · 0.80

Tested by

no test coverage detected