DebugAnalyzer constructor. Args: debug_dump: A DebugDumpDir object. config: A `cli_config.CLIConfig` object that carries user-facing configurations.
(self, debug_dump, config)
| 140 | "_Send", "_Recv", "_HostSend", "_HostRecv", "_Retval") |
| 141 | |
| 142 | def __init__(self, debug_dump, config): |
| 143 | """DebugAnalyzer constructor. |
| 144 | |
| 145 | Args: |
| 146 | debug_dump: A DebugDumpDir object. |
| 147 | config: A `cli_config.CLIConfig` object that carries user-facing |
| 148 | configurations. |
| 149 | """ |
| 150 | |
| 151 | self._debug_dump = debug_dump |
| 152 | self._evaluator = evaluator.ExpressionEvaluator(self._debug_dump) |
| 153 | |
| 154 | # Initialize tensor filters state. |
| 155 | self._tensor_filters = {} |
| 156 | |
| 157 | self._build_argument_parsers(config) |
| 158 | config.set_callback("graph_recursion_depth", |
| 159 | self._build_argument_parsers) |
| 160 | |
| 161 | # TODO(cais): Implement list_nodes. |
| 162 | |
| 163 | def _build_argument_parsers(self, config): |
| 164 | """Build argument parsers for DebugAnalayzer. |
nothing calls this directly
no test coverage detected