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

Method ParseWindowOnly

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

Source from the content-addressed store, hash-verified

4249}
4250
4251StatusOr<Window> HloParserImpl::ParseWindowOnly() {
4252 lexer_.Lex();
4253 Window window;
4254 if (!ParseWindow(&window, /*expect_outer_curlies=*/false)) {
4255 return InvalidArgument("Syntax error:\n%s", GetError());
4256 }
4257 if (lexer_.GetKind() != TokKind::kEof) {
4258 return InvalidArgument("Syntax error:\nExtra content after window");
4259 }
4260 return window;
4261}
4262
4263StatusOr<ConvolutionDimensionNumbers>
4264HloParserImpl::ParseConvolutionDimensionNumbersOnly() {

Callers 1

ParseWindowFunction · 0.80

Calls 4

ParseWindowFunction · 0.85
InvalidArgumentFunction · 0.85
LexMethod · 0.80
GetKindMethod · 0.80

Tested by

no test coverage detected