[XLA] Fix VLOG interaction with CallInliner
PiperOrigin-RevId: 350446538 Change-Id: I5633497e4f89687c01d7b8a306e847ea27cf4f0a
This commit is contained in:
parent
7d6722dcb4
commit
5eb2fd2824
@ -78,7 +78,6 @@ class SubcomputationInsertionVisitor : public DfsHloVisitorWithDefault {
|
||||
TF_ASSIGN_OR_RETURN(HloInstruction * new_root, Resolve(root));
|
||||
VLOG(1) << "Replacing all uses of " << call_->ToString()
|
||||
<< " with new root " << new_root->ToString();
|
||||
call_->ClearCalledComputations();
|
||||
return outer_->ReplaceInstruction(call_, new_root);
|
||||
}
|
||||
|
||||
|
@ -320,6 +320,7 @@ Status HloComputation::RemoveInstructionImpl(HloInstruction* instruction,
|
||||
to_be_deleted_.back()->DetachFromOperandsAndUsers();
|
||||
// Clear all operands to avoid Null operands.
|
||||
to_be_deleted_.back()->RemoveAllOperands();
|
||||
to_be_deleted_.back()->ClearCalledComputations();
|
||||
to_be_deleted_.back()->MarkAsDead();
|
||||
instructions_.erase(inst_it->second);
|
||||
instruction_iterators_.erase(inst_it);
|
||||
|
Loading…
Reference in New Issue
Block a user