MCPcopy Index your code
hub / github.com/tensorflow/hub / get_meta_graph_copy

Method get_meta_graph_copy

tensorflow_hub/saved_model_lib.py:377–382  ·  view source on GitHub ↗

Returns a copy of a MetaGraph with the identical set of tags.

(self, tags=None)

Source from the content-addressed store, hash-verified

375 self._proto.meta_graphs.extend([meta_graph])
376
377 def get_meta_graph_copy(self, tags=None):
378 """Returns a copy of a MetaGraph with the identical set of tags."""
379 meta_graph = self.get_meta_graph(tags)
380 copy = tf.compat.v1.MetaGraphDef()
381 copy.CopyFrom(meta_graph)
382 return copy
383
384 @property
385 def meta_graphs(self):

Callers 2

testSignaturesMethod · 0.95
testTagsMethod · 0.95

Calls 1

get_meta_graphMethod · 0.95

Tested by 2

testSignaturesMethod · 0.76
testTagsMethod · 0.76