提交 9679a213 编写于 作者: S Shanqing Cai 提交者: TensorFlower Gardener

tfdbg doc: clarification about debug_py BULID dependency

Change: 150070251
上级 00f8415d
......@@ -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(
......
......@@ -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")]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册