MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / __init__

Method __init__

tensorflow/python/debug/cli/analyzer_cli.py:142–161  ·  view source on GitHub ↗

DebugAnalyzer constructor. Args: debug_dump: A DebugDumpDir object. config: A `cli_config.CLIConfig` object that carries user-facing configurations.

(self, debug_dump, config)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 2

set_callbackMethod · 0.80

Tested by

no test coverage detected