| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| cli/ | 06-Sep-2024 | - | 16,292 | 12,396 | ||
| examples/ | 06-Sep-2024 | - | 1,826 | 1,227 | ||
| lib/ | 06-Sep-2024 | - | 16,919 | 13,005 | ||
| wrappers/ | 06-Sep-2024 | - | 4,308 | 3,206 | ||
| BUILD | D | 06-Sep-2024 | 2.2 KiB | 57 | 53 | |
| README.md | D | 06-Sep-2024 | 2.4 KiB | 53 | 40 | |
| __init__.py | D | 06-Sep-2024 | 2.8 KiB | 72 | 44 |
README.md
1# TensorFlow Debugger (TFDBG) 2 3[TOC] 4 5TensorFlow Debugger (TFDBG) is a specialized debugger for TensorFlow's computation 6runtime. TFDBG in TensorFlow 2.x provides access to: 7 8- Tensor values during [eager](https://www.tensorflow.org/guide/eager) and 9 [graph](https://www.tensorflow.org/api_docs/python/tf/Graph) execution. 10- Structure of computation graphs 11- Source code and stack traces associated with these execution and 12 graph-execution events. 13 14## How to use TFDBG? 15 16TFDBG in TensorFlow 2.x consists of a Python API that enables dumping debug data 17to the file system (namely `tf.debugging.experimental.enable_dump_debug_info()`) 18and a TensorBoard-based GUI that provides an interactive visualization of the 19debug data (i.e., *TensorBoard Debugger V2 Plugin*). 20 21`enable_dump_debug_info()` offers a number of levels of tensor-value 22instrumentation varying in the amount of information dumped and the incurred 23performance overhead. 24 25See the API documentation of 26[`tf.debugging.experimental.enable_dump_debug_info()`](https://www.tensorflow.org/api_docs/python/tf/debugging/experimental/enable_dump_debug_info) 27 28For a detailed walkthrough of the GUI TensorBoard Debugger V2 Plugin, see 29[Debugging Numerical Issues in TensorFlow Programs Using TensorBoard Debugger 30V2](https://www.tensorflow.org/tensorboard/debugger_v2). 31 32## Known issues and limitations 33 341. Using `tf.debugging.experimental.enable_dumpp_debug_info()` leads to 35 performance penalty on your TensorFlow program. The amount of slowdown 36 varied depending on whether you are using TensorFlow on CPU, GPUs, or TPUs. 37 The performance penalty is the highest on TPUs, followed by GPUs, and lowest 38 on CPU. 392. `tf.debugging.experimental.enable_dump_debug_info()` is currently 40 incompatible with 41 [model saving/loading and checkpointing](https://www.tensorflow.org/tutorials/keras/save_and_load) 42 43## Legacy API for TensorFlow 1.x 44 45TensorFlow 1.x's execution paradigm is different from that of TensorFlow v2; it 46is based on the deprecated 47[`tf.Session`](https://www.tensorflow.org/api_docs/python/tf/compat/v1/Session) 48If you are using TensorFlow 1.x, you can use the deprecated 49`tf_debug.LocalCLIDebugWrapperSession` wrapper for `tf.Session` 50to inspect tensor values and other types of debug information in a 51terminal-based command-line interface. For details, see 52[this blog post](https://developers.googleblog.com/2017/02/debug-tensorflow-models-with-tfdbg.html). 53