MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / histogram

Function histogram

tensorflow/python/ops/summary_ops_v2.py:789–801  ·  view source on GitHub ↗

Writes a histogram summary if possible.

(name, tensor, family=None, step=None)

Source from the content-addressed store, hash-verified

787
788
789def histogram(name, tensor, family=None, step=None):
790 """Writes a histogram summary if possible."""
791
792 def function(tag, scope):
793 # Note the identity to move the tensor to the CPU.
794 return gen_summary_ops.write_histogram_summary(
795 context.context().summary_writer._resource, # pylint: disable=protected-access
796 _choose_step(step),
797 tag,
798 array_ops.identity(tensor),
799 name=scope)
800
801 return summary_writer_function(name, tensor, function, family=family)
802
803
804def image(name, tensor, bad_color=None, max_images=3, family=None, step=None):

Callers

nothing calls this directly

Calls 1

summary_writer_functionFunction · 0.85

Tested by

no test coverage detected