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

Function _summary

tensorboard/plugins/hparams/summary.py:181–199  ·  view source on GitHub ↗

Returns a summary holding the given HParamsPluginData message. Helper function. Args: tag: string. The tag to use. hparams_plugin_data: The HParamsPluginData message to use.

(tag, hparams_plugin_data)

Source from the content-addressed store, hash-verified

179
180
181def _summary(tag, hparams_plugin_data):
182 """Returns a summary holding the given HParamsPluginData message.
183
184 Helper function.
185
186 Args:
187 tag: string. The tag to use.
188 hparams_plugin_data: The HParamsPluginData message to use.
189 """
190 summary = tf.compat.v1.Summary()
191 tb_metadata = metadata.create_summary_metadata(hparams_plugin_data)
192 raw_metadata = tb_metadata.SerializeToString()
193 tf_metadata = tf.compat.v1.SummaryMetadata.FromString(raw_metadata)
194 summary.value.add(
195 tag=tag,
196 metadata=tf_metadata,
197 tensor=_TF_NULL_TENSOR,
198 )
199 return summary
200
201
202# Like `metadata.NULL_TENSOR`, but with the TensorFlow version of the

Callers 3

experiment_pbFunction · 0.85
session_start_pbFunction · 0.85
session_end_pbFunction · 0.85

Calls 1

addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…