-
Notifications
You must be signed in to change notification settings - Fork 74.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tfdbg2] Fix debugger-generated names for Placeholder and Const ops
to facilitate input tracing in the parts of a Graph that contains those ops. 1. tfdbg2's dumping callback renames Const and Placeholder/PlaceholderWithDefault ops to avoid duplicate (e.g., None) op names in the same graph. It turns out a simpler way to solve it is to use the output tensor name of those ops, which are not duplicate in a graph. 2. tfdbg2 adds Identity ops in the graph under the v1 graph mode. To allow tracing through these Identity ops, we create a new dict called `_tensor_aliases` to map the names of those debugger-generated Identity ops to the names of the original instrumented graph tensors. PiperOrigin-RevId: 309414953 Change-Id: I73c086e8faba849562142a6a3d246938ebd25811
- Loading branch information
1 parent
c469d6a
commit 71336da
Showing
2 changed files
with
83 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters