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

Method _parse_op_label

tensorflow/python/client/timeline.py:422–433  ·  view source on GitHub ↗

Parses the fields in a node timeline label.

(self, label)

Source from the content-addressed store, hash-verified

420 return flow_id
421
422 def _parse_op_label(self, label):
423 """Parses the fields in a node timeline label."""
424 # Expects labels of the form: name = op(arg, arg, ...).
425 match = re.match(r'(.*) = (.*)\((.*)\)', label)
426 if match is None:
427 return 'unknown', 'unknown', []
428 nn, op, inputs = match.groups()
429 if not inputs:
430 inputs = []
431 else:
432 inputs = inputs.split(', ')
433 return nn, op, inputs
434
435 def _assign_lanes(self, device_only):
436 """Assigns non-overlapping lanes for the activities on each device."""

Callers 2

_emit_opMethod · 0.95
_show_computeMethod · 0.95

Calls 2

matchMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected