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

Function _is_loop_edge

tensorflow/python/tpu/tensor_tracer_report.py:68–70  ·  view source on GitHub ↗

Returns true if the op is the end of a while-loop creating a cycle.

(op)

Source from the content-addressed store, hash-verified

66 list of nodes or the cycle of nodes found.
67 """
68 def _is_loop_edge(op):
69 """Returns true if the op is the end of a while-loop creating a cycle."""
70 return op.type in ['NextIteration']
71
72 def _in_op_degree(op):
73 """Returns the number of incoming edges to the given op.

Callers 2

_in_op_degreeFunction · 0.85
topological_sortFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected