diff options
author | Thomas Joerg <tjoerg@google.com> | 2018-06-29 03:33:39 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-06-29 03:36:56 -0700 |
commit | c10937f8b9e374b9c1405f86a274ddc150bd565a (patch) | |
tree | 669548e9ebdbc291e511120d5ea44617cf16766a /tensorflow/compiler/xla/service/multi_output_fusion.h | |
parent | 503d7444f95859526a2d984f47b3adc6434dcf45 (diff) |
[XLA:GPU] Stop creating nested fusion nodes in multi-output fusion.
PiperOrigin-RevId: 202624150
Diffstat (limited to 'tensorflow/compiler/xla/service/multi_output_fusion.h')
-rw-r--r-- | tensorflow/compiler/xla/service/multi_output_fusion.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tensorflow/compiler/xla/service/multi_output_fusion.h b/tensorflow/compiler/xla/service/multi_output_fusion.h index d23822e33e..0019cd7254 100644 --- a/tensorflow/compiler/xla/service/multi_output_fusion.h +++ b/tensorflow/compiler/xla/service/multi_output_fusion.h @@ -78,6 +78,10 @@ class MultiOutputFusion : public HloPassInterface { // Test if it's legal to fuse instr1 and instr2 into one fusion instruction. virtual bool LegalToFuse(HloInstruction* instr1, HloInstruction* instr2); + // Fuse HloInstrctuion instr1 and instr2 and return the fused instruction. + // The other instruction is removed from its parent computation. + virtual HloInstruction* Fuse(HloInstruction* instr1, HloInstruction* instr2); + // Recompute reachability for the current computation. void RecomputeReachability(); @@ -101,10 +105,6 @@ class MultiOutputFusion : public HloPassInterface { virtual bool DoProducerConsumerMultiOutputFusion(); private: - // Fuse HloInstrctuion instr1 and instr2 and return the fused instruction. - // The other instruction is removed from its parent computation. - HloInstruction* Fuse(HloInstruction* instr1, HloInstruction* instr2); - // Update the internal data structures after instr1 and instr2 are fused into // one fusion instruction. void Update(HloInstruction* instr1, HloInstruction* instr2); |