MCPcopy Create free account
hub / github.com/tensorflow/tensorboard / pb_via_op

Method pb_via_op

tensorboard/plugins/mesh/summary_test.py:28–33  ·  view source on GitHub ↗

Parses pb proto.

(self, summary_op)

Source from the content-addressed store, hash-verified

26
27class MeshSummaryTest(tf.test.TestCase):
28 def pb_via_op(self, summary_op):
29 """Parses pb proto."""
30 actual_pbtxt = summary_op.eval()
31 actual_proto = summary_pb2.Summary()
32 actual_proto.ParseFromString(actual_pbtxt)
33 return actual_proto
34
35 def get_components(self, proto):
36 return metadata.parse_plugin_metadata(

Callers 2

test_opMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected