aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/hlo_verifier.h
diff options
context:
space:
mode:
authorGravatar Dimitris Vardoulakis <dimvar@google.com>2018-04-19 23:35:04 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-04-19 23:37:29 -0700
commitd2fd0bbac6368a6b41e73d18c93b24442f5653f1 (patch)
treebfc4eb526882e5b9aab1fba852f868b0b8dd1ddc /tensorflow/compiler/xla/service/hlo_verifier.h
parentf7e8fbb28a0fa4e979a94d7b458706abf48f7deb (diff)
[TF:XLA] Factor out the handling of while instructions to make HloVerifier::Run shorter.
PiperOrigin-RevId: 193626864
Diffstat (limited to 'tensorflow/compiler/xla/service/hlo_verifier.h')
-rw-r--r--tensorflow/compiler/xla/service/hlo_verifier.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/tensorflow/compiler/xla/service/hlo_verifier.h b/tensorflow/compiler/xla/service/hlo_verifier.h
index 1dd7ec3c51..1ec55a9bdc 100644
--- a/tensorflow/compiler/xla/service/hlo_verifier.h
+++ b/tensorflow/compiler/xla/service/hlo_verifier.h
@@ -102,7 +102,7 @@ class ShapeVerifier : public DfsHloVisitor {
Status CheckTernaryShape(const HloInstruction* instruction);
Status CheckVariadicShape(const HloInstruction* instruction);
- // Checks if the given two instructions shares the same channel id.
+ // Checks if the given two instructions share the same channel id.
Status CheckSameChannel(const HloInstruction* instr1,
const HloInstruction* instr2);
@@ -144,9 +144,11 @@ class HloVerifier : public HloPassInterface {
// CHECKs various invariants of a fusion instruction.
Status CheckFusionInstruction(HloInstruction* fusion) const;
+ Status CheckWhileInstruction(HloInstruction* instruction);
+
// Creates a ShapeVerifier that checks that shapes match inferred
- // expectations. This is a factory function because ShapeVerifier, Note that
- // ShapeVerifier, being a DfsHloVisitor, is stateful. We want a clean object
+ // expectations. This is a factory function because ShapeVerifier,
+ // being a DfsHloVisitor, is stateful. We want a clean object
// for each run of the verifier.
ShapeVerifierFactory shape_verifier_factory_;
};