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

Function _write_graph_def

tensorflow/lite/python/create_custom_op.py:70–75  ·  view source on GitHub ↗
(graph_def, filename)

Source from the content-addressed store, hash-verified

68
69
70def _write_graph_def(graph_def, filename):
71 if not filename:
72 raise ValueError("Output graph file not specified")
73
74 with gfile.Open(filename, "wb") as f:
75 f.write(graph_def.SerializeToString())
76
77
78def _collapse_subgraph(graph_def, inputs, outputs, op_definition):

Callers 1

mainFunction · 0.85

Calls 3

OpenMethod · 0.45
writeMethod · 0.45
SerializeToStringMethod · 0.45

Tested by

no test coverage detected