aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/tools/parser/hlo_lexer.h
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/compiler/xla/tools/parser/hlo_lexer.h')
-rw-r--r--tensorflow/compiler/xla/tools/parser/hlo_lexer.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/tensorflow/compiler/xla/tools/parser/hlo_lexer.h b/tensorflow/compiler/xla/tools/parser/hlo_lexer.h
index 79c4f271a1..3b9efcb92d 100644
--- a/tensorflow/compiler/xla/tools/parser/hlo_lexer.h
+++ b/tensorflow/compiler/xla/tools/parser/hlo_lexer.h
@@ -37,15 +37,11 @@ class HloLexer {
}
TokKind Lex() { return current_kind_ = LexToken(); }
-
TokKind GetKind() const { return current_kind_; }
string GetStrVal() const {
switch (GetKind()) {
case TokKind::kName:
case TokKind::kAttributeName:
- case TokKind::kDimLabels:
- case TokKind::kDxD:
- case TokKind::kPad:
return str_val_;
default:
LOG(FATAL) << "This token does not have string value";
@@ -96,7 +92,7 @@ class HloLexer {
TokKind LexPercent();
TokKind LexShape();
TokKind LexConstant();
- TokKind LexNumberOrPattern();
+ TokKind LexDigitOrNegative();
TokKind LexComment();
const tensorflow::StringPiece buf_;