Get the string representation of a debug watch on a tensor. Args: node_name: Name of the node by which the watched tensor is produced, as a string. output_slot: Output slot index of the tensor, as an integer. debug_op: Name of the debug op that is used to watch the tensor, as
(node_name, output_slot, debug_op)
| 183 | |
| 184 | |
| 185 | def _get_tensor_watch_key(node_name, output_slot, debug_op): |
| 186 | """Get the string representation of a debug watch on a tensor. |
| 187 | |
| 188 | Args: |
| 189 | node_name: Name of the node by which the watched tensor is produced, as a |
| 190 | string. |
| 191 | output_slot: Output slot index of the tensor, as an integer. |
| 192 | debug_op: Name of the debug op that is used to watch the tensor, as a |
| 193 | string. |
| 194 | |
| 195 | Returns: |
| 196 | A string representing the debug watch on the tensor (i.e., the "watch |
| 197 | key"). |
| 198 | """ |
| 199 | return "%s:%s" % (_get_tensor_name(node_name, output_slot), debug_op) |
| 200 | |
| 201 | |
| 202 | def has_inf_or_nan(datum, tensor): |
no test coverage detected