MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _get_tensor_watch_key

Function _get_tensor_watch_key

tensorflow/python/debug/lib/debug_data.py:185–199  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

183
184
185def _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
202def has_inf_or_nan(datum, tensor):

Callers 6

watch_keyMethod · 0.85
debug_watch_keysMethod · 0.85
get_tensor_file_pathsMethod · 0.85
get_tensorsMethod · 0.85
get_rel_timestampsMethod · 0.85
get_dump_sizes_bytesMethod · 0.85

Calls 1

_get_tensor_nameFunction · 0.70

Tested by

no test coverage detected