MCPcopy Create free account
hub / github.com/benoitsteiner/tensorflow-opencl / ValidateNoCycles

Function ValidateNoCycles

tensorflow/c/c_api.cc:382–435  ·  view source on GitHub ↗

This traverses the specified nodes in topological order to verify there are no cycles. Starting with inputless nodes, it visits nodes whose inputs have all been visited, and counts the total number of visited nodes. If there is a cycle, nodes in the cycle will never be visited, and the visited count will be less than the total node count.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

ExtendSessionGraphHelperFunction · 0.85

Calls 15

InvalidArgumentFunction · 0.85
JoinFunction · 0.85
num_node_idsMethod · 0.80
FindNodeIdMethod · 0.80
IsMergeMethod · 0.80
IsControlEdgeMethod · 0.80
IsNextIterationMethod · 0.80
srcMethod · 0.80
dstMethod · 0.80
sizeMethod · 0.45
push_backMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected