def function(tag, scope): gen_summary_ops.write_histogram_summary( context.context().summary_writer_resource, training_util.get_global_step(), tag, tensor, name=scope)
def record(): with summary_op_util.summary_scope(name, family, values=[tensor]) as (tag, scope): gen_summary_ops.write_histogram_summary( context.context().summary_writer_resource, training_util.get_global_step(), tag, tensor, name=scope)
def function(tag, scope): # Note the identity to move the tensor to the CPU. return gen_summary_ops.write_histogram_summary( context.context().summary_writer_resource, _choose_step(step), tag, array_ops.identity(tensor), name=scope)
def function(tag, scope): # Note the identity to move the tensor to the CPU. return gen_summary_ops.write_histogram_summary( context.context().summary_writer_resource, training_util.get_global_step(), tag, array_ops.identity(tensor), name=scope)
def histogram(self, name, tensor, family=None): """Write a histogram summary. Args: name: A name for the generated node. Will also serve as a series name in TensorBoard. tensor: A real numeric `Tensor` or compatible value type. Any shape. Values to use to build the histogram. family: Optional; if provided, used as the prefix of the summary tag name, which controls the tab name used for display on Tensorboard. """ with context.device(self._CPU_DEVICE): with summary_op_util.summary_scope( name, family, values=[tensor]) as (tag, scope): gen_summary_ops.write_histogram_summary( self._resource, self._update_global_step_tensor(), tag, _maybe_cpu(tensor), name=scope)
def histogram(self, name, tensor, family=None): """Write a histogram summary. Args: name: A name for the generated node. Will also serve as a series name in TensorBoard. tensor: A real numeric `Tensor` or compatible value type. Any shape. Values to use to build the histogram. family: Optional; if provided, used as the prefix of the summary tag name, which controls the tab name used for display on Tensorboard. """ with context.device(self._CPU_DEVICE): with summary_op_util.summary_scope( name, family, values=[tensor]) as (tag, scope): gen_summary_ops.write_histogram_summary( self._resource, self._update_global_step_tensor(), tag, _maybe_as_cpu_tensor(tensor), name=scope)
def record(): with summary_op_util.summary_scope( name, family, values=[tensor]) as (tag, scope): gen_summary_ops.write_histogram_summary( context.context().summary_writer_resource, training_util.get_global_step(), tag, tensor, name=scope)