From 9679a2138e04555e10a1421f9de8b71a504dc0f9 Mon Sep 17 00:00:00 2001 From: Shanqing Cai Date: Tue, 14 Mar 2017 07:34:44 -0800 Subject: [PATCH] tfdbg doc: clarification about debug_py BULID dependency Change: 150070251 --- tensorflow/docs_src/programmers_guide/debugger.md | 4 ++++ tensorflow/docs_src/programmers_guide/tfdbg-tflearn.md | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/tensorflow/docs_src/programmers_guide/debugger.md b/tensorflow/docs_src/programmers_guide/debugger.md index ff47d149226..65f3d0b7183 100644 --- a/tensorflow/docs_src/programmers_guide/debugger.md +++ b/tensorflow/docs_src/programmers_guide/debugger.md @@ -41,6 +41,8 @@ the `--debug` flag is provided: ```python # Let your BUILD target depend on "//tensorflow/python/debug:debug_py" +# (You don't need to worry about the BUILD dependency if you are using a pip +# install of open-source TensorFlow.) from tensorflow.python import debug as tf_debug sess = tf_debug.LocalCLIDebugWrapperSession(sess) @@ -323,6 +325,8 @@ To use it, simply do: ```python # Let your BUILD target depend on "//tensorflow/python/debug:debug_py +# (You don't need to worry about the BUILD dependency if you are using a pip +# install of open-source TensorFlow.) from tensorflow.python.debug import debug_utils sess = tf_debug.DumpingDebugWrapperSession( diff --git a/tensorflow/docs_src/programmers_guide/tfdbg-tflearn.md b/tensorflow/docs_src/programmers_guide/tfdbg-tflearn.md index 5498fd7d294..92f24f077a9 100644 --- a/tensorflow/docs_src/programmers_guide/tfdbg-tflearn.md +++ b/tensorflow/docs_src/programmers_guide/tfdbg-tflearn.md @@ -23,6 +23,8 @@ create a `LocalCLIDebugHook` and supply it as the `monitors` argument. For examp ```python # First, let your BUILD target depend on "//tensorflow/python/debug:debug_py" +# (You don't need to worry about the BUILD dependency if you are using a pip +# install of open-source TensorFlow.) from tensorflow.python import debug as tf_debug hooks = [tf_debug.LocalCLIDebugHook()] @@ -62,6 +64,8 @@ calling its constructor. For example: ```python # First, let your BUILD target depend on "//tensorflow/python/debug:debug_py" +# (You don't need to worry about the BUILD dependency if you are using a pip +# install of open-source TensorFlow.) from tensorflow.python import debug as tf_debug hooks = [tf_debug.LocalCLIDebugHook()] @@ -94,6 +98,8 @@ non-interactive `DumpingDebugHook`. For example: ```python # Let your BUILD target depend on "//tensorflow/python/debug:debug_py +# (You don't need to worry about the BUILD dependency if you are using a pip +# install of open-source TensorFlow.) from tensorflow.python import debug as tf_debug hooks = [tf_debug.DumpingDebugHook("/shared/storage/location/tfdbg_dumps_1")] -- GitLab