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

Function _get_tensor_name

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

Get tensor name given node name and output slot index. Args: node_name: Name of the node that outputs the tensor, as a string. output_slot: Output slot index of the tensor, as an integer. Returns: Name of the tensor, as a string.

(node_name, output_slot)

Source from the content-addressed store, hash-verified

169
170
171def _get_tensor_name(node_name, output_slot):
172 """Get tensor name given node name and output slot index.
173
174 Args:
175 node_name: Name of the node that outputs the tensor, as a string.
176 output_slot: Output slot index of the tensor, as an integer.
177
178 Returns:
179 Name of the tensor, as a string.
180 """
181
182 return "%s:%d" % (node_name, output_slot)
183
184
185def _get_tensor_watch_key(node_name, output_slot, debug_op):

Callers 5

_get_tensor_watch_keyFunction · 0.70
tensor_nameMethod · 0.70
convertMethod · 0.50
convertMethod · 0.50
get_input_arraysMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected