Debug Models Using tfdbg

Open a Terminal through Jupyter Notebook

(Menu Bar -> Terminal -> New Terminal)

Run the Next Cell to Display the Code

Find the DebugWrapper around the tf.Session

sess = tf.Session(config=config)
sess = tf_debug.LocalCLIDebugWrapperSession(sess)

In [ ]:
%%bash

cat /root/src/main/python/debug/debug_model_cpu.py

Run the following in the Terminal (CPU):

python /root/src/main/python/debug/debug_model_cpu.py

In [ ]:
%%bash

cat /root/src/main/python/debug/debug_model_gpu.py

Run the following in the Terminal (GPU):

python /root/src/main/python/debug/debug_model_gpu.py

In [ ]: