| 4249 | } |
| 4250 | |
| 4251 | StatusOr<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 | |
| 4263 | StatusOr<ConvolutionDimensionNumbers> |
| 4264 | HloParserImpl::ParseConvolutionDimensionNumbersOnly() { |
no test coverage detected