MCPcopy Index your code
hub / github.com/tensorflow/tensorboard / add_graph

Method add_graph

tensorboard/util/test_util.py:96–106  ·  view source on GitHub ↗
(self, graph, global_step=None, graph_def=None)

Source from the content-addressed store, hash-verified

94 super().add_session_log(tf_session_log, global_step)
95
96 def add_graph(self, graph, global_step=None, graph_def=None):
97 if isinstance(graph_def, graph_pb2.GraphDef):
98 tf_graph_def = tf.compat.v1.GraphDef.FromString(
99 graph_def.SerializeToString()
100 )
101 else:
102 tf_graph_def = graph_def
103
104 super().add_graph(
105 graph, global_step=global_step, graph_def=tf_graph_def
106 )
107
108 def add_meta_graph(self, meta_graph_def, global_step=None):
109 if isinstance(meta_graph_def, meta_graph_pb2.MetaGraphDef):

Callers 15

test_graph_defMethod · 0.95
GenerateTestDataFunction · 0.95
generate_runMethod · 0.95
testTFSummaryScalarMethod · 0.80
testTFSummaryImageMethod · 0.80
setUpMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected