maybe_add_histogram¶
-
tfsnippet.utils.
maybe_add_histogram
(tensor, summary_name=None, strip_scope=False, collections=None, name=None)¶ If
tfsnippet.settings.auto_histogram == True
, add the histogram of tensor viatfsnippet.add_histogram()
. Otherwise do nothing.Parameters: - tensor – Take histogram of this tensor.
- summary_name – Specify the summary name for tensor.
- strip_scope – If
True
, strip the name scope from tensor.name when adding the histogram. - collections – Add the histogram to these collections. Defaults to [tfsnippet.GraphKeys.AUTO_HISTOGRAM].
- name (str) – Default name of the name scope. If not specified, generate one according to the method name.
Returns: The serialized histogram tensor of tensor.
See also