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

Function mark_op_as_used

tensorflow/python/framework/meta_graph.py:159–162  ·  view source on GitHub ↗
(op)

Source from the content-addressed store, hash-verified

157 functions_to_process = [] # A subset of used_ops
158
159 def mark_op_as_used(op):
160 if op not in used_ops and op in name_to_function:
161 functions_to_process.append(name_to_function[op])
162 used_ops.add(op)
163
164 for node in graph_def.node:
165 mark_op_as_used(node.op)

Callers 2

ops_used_by_graph_defFunction · 0.85
OpsUsedByGraphFunction · 0.85

Calls 2

appendMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected