mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-07 00:20:20 +01:00
Add vlogging of HloModule before and after fusion.
PiperOrigin-RevId: 171029054
This commit is contained in:
parent
9e658545a9
commit
4f10a6597c
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user