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

Function tf_operations

tensorflow/python/framework/c_api_util.py:192–207  ·  view source on GitHub ↗

Generator that yields every TF_Operation in `graph`. Args: graph: Graph Yields: wrapped TF_Operation

(graph)

Source from the content-addressed store, hash-verified

190
191
192def tf_operations(graph):
193 """Generator that yields every TF_Operation in `graph`.
194
195 Args:
196 graph: Graph
197
198 Yields:
199 wrapped TF_Operation
200 """
201 # pylint: disable=protected-access
202 pos = 0
203 c_op, pos = c_api.TF_GraphNextOperation(graph._c_graph, pos)
204 while c_op is not None:
205 yield c_op
206 c_op, pos = c_api.TF_GraphNextOperation(graph._c_graph, pos)
207 # pylint: enable=protected-access
208
209
210def new_tf_operations(graph):

Callers 1

new_tf_operationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected