Skip to content

Commit 5966556

Browse files
authored
Merge pull request #169 from caisq/caisq-patch-1
tfdbg LocalCLIDebugWrapperSession works in CoLab
2 parents ef0ecec + e2aa061 commit 5966556

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

courses/machine_learning/deepdive/03_tensorflow/debug_demo.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@
348348
" [2, 8, 7]\n",
349349
" ])\n",
350350
" \n",
351-
" sess = tf_debug.LocalCLIDebugWrapperSession(sess)\n",
351+
" sess = tf_debug.LocalCLIDebugWrapperSession(sess, ui_type=\"readline\")\n",
352352
" sess.add_tensor_filter(\"has_inf_or_nan\", tf_debug.has_inf_or_nan)\n",
353353
" print sess.run(some_method(fake_a, fake_b))"
354354
]
@@ -364,9 +364,9 @@
364364
"outputs": [],
365365
"source": [
366366
"%bash\n",
367-
"# Note: doesn't work because Datalab is not an interactive terminal\n",
368-
"# You have to ssh into Docker image and run it in a terminal or have TensorFlow locally installed.\n",
369-
"# Sorry :(\n",
367+
"# Note: won't work without the ui_type=\"readline\" argument because Datalab is not an interactive terminal\n",
368+
"# and doesn't support the default \"curses\" ui_type. If you would like to use the default \"curses\" UI,\n",
369+
"# you have to ssh into Docker image and run it in a terminal or have TensorFlow locally installed.\n",
370370
"# python debugger.py --debug"
371371
]
372372
},

0 commit comments

Comments
 (0)