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

Function main

tensorflow/python/debug/cli/offline_analyzer.py:30–48  ·  view source on GitHub ↗
(_)

Source from the content-addressed store, hash-verified

28
29
30def main(_):
31 if FLAGS.log_usage:
32 pass # No logging for open-source.
33
34 if not FLAGS.dump_dir:
35 print("ERROR: dump_dir flag is empty.", file=sys.stderr)
36 sys.exit(1)
37
38 print("tfdbg offline: FLAGS.dump_dir = %s" % FLAGS.dump_dir)
39
40 debug_dump = debug_data.DebugDumpDir(
41 FLAGS.dump_dir, validate=FLAGS.validate_graph)
42 cli = analyzer_cli.create_analyzer_ui(
43 debug_dump,
44 tensor_filters={"has_inf_or_nan": debug_data.has_inf_or_nan},
45 ui_type=FLAGS.ui_type)
46
47 title = "tfdbg offline @ %s" % FLAGS.dump_dir
48 cli.run_ui(title=title, title_color="black_on_white", init_command="lt")
49
50
51if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

exitMethod · 0.80
run_uiMethod · 0.45

Tested by

no test coverage detected