Writes a histogram summary if possible.
(name, tensor, family=None, step=None)
| 787 | |
| 788 | |
| 789 | def 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 | |
| 804 | def image(name, tensor, bad_color=None, max_images=3, family=None, step=None): |
nothing calls this directly
no test coverage detected