See the guide: Utilities (contrib) > Miscellaneous Utility Functions
Collect the list of ops used by a graph.
Does not validate that the ops are all registered.
GraphDefproto, as from
A list of strings, each naming an op used by the graph.