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

Function _serialize_graph

tensorflow/python/ops/summary_ops_v2.py:952–956  ·  view source on GitHub ↗
(arbitrary_graph)

Source from the content-addressed store, hash-verified

950
951
952def _serialize_graph(arbitrary_graph):
953 if isinstance(arbitrary_graph, ops.Graph):
954 return arbitrary_graph.as_graph_def(add_shapes=True).SerializeToString()
955 else:
956 return arbitrary_graph.SerializeToString()
957
958
959def _choose_step(step):

Callers 2

initializeFunction · 0.85
graphFunction · 0.85

Calls 2

as_graph_defMethod · 0.80
SerializeToStringMethod · 0.45

Tested by

no test coverage detected