You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: programmers_guide/debugger.md
+9-13Lines changed: 9 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -153,8 +153,11 @@ Try the following commands at the `tfdbg>` prompt (referencing the code at
153
153
|**`@[coordinates]`**|| Navigate to specified element in `pt` output. |`@[10,0]` or `@10,0`|
154
154
|**`/regex`**||[less](https://linux.die.net/man/1/less)-style search for given regular expression. |`/inf`|
155
155
|**`/`**|| Scroll to the next line with matches to the searched regex (if any). |`/`|
156
-
|**`pf`**||**Print a value in the feed_dict to `Session.run`**||
156
+
|**`pf`**||**Print a value in the feed_dict to `Session.run`.**||
157
157
||`pf <feed_tensor_name>`| Print the value of the feed. Also note that the `pf` command has the `-a`, `-r` and `-s` flags (not listed below), which have the same syntax and semantics as the identically-named flags of `pt`. |`pf input_xs:0`|
158
+
|**eval**||**Evaluate arbitrary Python and numpy expression.**||
159
+
||`eval <expression>`| Evaluate a Python / numpy expression, with numpy available as `np` and debug tensor names enclosed in backticks. |``eval "np.matmul((`output/Identity:0` / `Softmax:0`).T, `Softmax:0`)"``|
160
+
||`-a`| Print a large-sized evaluation result in its entirety, i.e., without using ellipses. |``eval -a 'np.sum(`Softmax:0`, axis=1)'``|
158
161
|**`ni`**||**Display node information.**||
159
162
||`-a`| Include node attributes in the output. |`ni -a hidden/Relu`|
160
163
||`-d`| List the debug dumps available from the node. |`ni -d hidden/Relu`|
@@ -182,6 +185,7 @@ Try the following commands at the `tfdbg>` prompt (referencing the code at
182
185
||`--node_name_filter <pattern>`| Execute the next `Session.run`, watching only nodes with names matching the given regular-expression pattern. |`run --node_name_filter Softmax.*`|
183
186
||`--op_type_filter <pattern>`| Execute the next `Session.run`, watching only nodes with op types matching the given regular-expression pattern. |`run --op_type_filter Variable.*`|
184
187
||`--tensor_dtype_filter <pattern>`| Execute the next `Session.run`, dumping only Tensors with data types (`dtype`s) matching the given regular-expression pattern. |`run --tensor_dtype_filter int.*`|
188
+
||`-p`| Execute the next `Session.run` call in profiling mode. |`run -p`|
185
189
|**`ri`**||**Display information about the run the current run, including fetches and feeds.**|`ri`|
186
190
|**`help`**||**Print general help information**|`help`|
187
191
||`help <command>`| Print help for given command. |`help lt`|
@@ -204,16 +208,6 @@ addditional features:
204
208
* Use the `prev` and `next` commands.
205
209
* Click underlined `<--` and `-->` links near the top left corner of the
206
210
screen.
207
-
* Evaluation of arbitrary expressions (with `numpy` imported as `np`) using
208
-
debug tensor names enclosed in pairs of backtics. Use the `-a` flag to
209
-
print large-sized results in its entirety. For example:
0 commit comments