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

Method ParseToken

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

Source from the content-addressed store, hash-verified

4144}
4145
4146bool HloParserImpl::ParseToken(TokKind kind, const std::string& msg) {
4147 VLOG(3) << "ParseToken " << TokKindToString(kind) << " " << msg;
4148 if (lexer_.GetKind() != kind) {
4149 return TokenError(msg);
4150 }
4151 lexer_.Lex();
4152 return true;
4153}
4154
4155bool HloParserImpl::EatIfPresent(TokKind kind) {
4156 if (lexer_.GetKind() != kind) {

Callers

nothing calls this directly

Calls 3

TokKindToStringFunction · 0.85
GetKindMethod · 0.80
LexMethod · 0.80

Tested by

no test coverage detected