Add vlogging of HloModule before and after fusion.

PiperOrigin-RevId: 171029054
This commit is contained in:
Mark Heffernan 2017-10-04 10:38:15 -07:00 committed by TensorFlower Gardener
parent 9e658545a9
commit 4f10a6597c

View File

@ -203,6 +203,9 @@ bool InstructionFusion::CanFuseOnAllPaths(
}
StatusOr<bool> InstructionFusion::Run(HloModule* module) {
VLOG(2) << "Before instruction fusion:";
XLA_VLOG_LINES(2, module->ToString());
bool changed = false;
module_ = module;
for (auto* computation : module->MakeNonfusionComputations()) {
@ -371,6 +374,10 @@ StatusOr<bool> InstructionFusion::Run(HloModule* module) {
}
}
}
VLOG(2) << "After instruction fusion:";
XLA_VLOG_LINES(2, module->ToString());
return changed;
}