aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/hlo_parser.cc
diff options
context:
space:
mode:
authorGravatar Mark Heffernan <meheff@google.com>2018-08-13 11:58:25 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-08-13 12:08:21 -0700
commit881f58d20cc159817eadefa6f8e1b7d87c85d01f (patch)
treee66a67e635afb9a788336a67f4b97300e468f82b /tensorflow/compiler/xla/service/hlo_parser.cc
parent55b327916aa9b1f558242869412ae411d00d20ee (diff)
Enable arbitrary comments in HLO in both /*...*/ and // forms.
Allow '/*...*/' and '//' comments to appear anywhere in HLO text, including multi-line comments. Previously only '/*...*/' comments were only allowed and only in certain locations in a serialized Literal. PiperOrigin-RevId: 208519204
Diffstat (limited to 'tensorflow/compiler/xla/service/hlo_parser.cc')
-rw-r--r--tensorflow/compiler/xla/service/hlo_parser.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/tensorflow/compiler/xla/service/hlo_parser.cc b/tensorflow/compiler/xla/service/hlo_parser.cc
index 2a8c6ecd92..4b3cd99dc0 100644
--- a/tensorflow/compiler/xla/service/hlo_parser.cc
+++ b/tensorflow/compiler/xla/service/hlo_parser.cc
@@ -1824,7 +1824,6 @@ bool HloParser::ParseDenseLiteral(std::unique_ptr<Literal>* literal,
break;
}
case TokKind::kComma:
- case TokKind::kComment:
// Skip.
lexer_.Lex();
break;