コード例 #1
0
 def function(tag, scope):
     gen_summary_ops.write_scalar_summary(
         context.context().summary_writer_resource,
         training_util.get_global_step(),
         tag,
         tensor,
         name=scope)
コード例 #2
0
ファイル: summary_ops.py プロジェクト: zallerting/tensorflow
 def record():
     with summary_op_util.summary_scope(name, family,
                                        values=[tensor]) as (tag, scope):
         gen_summary_ops.write_scalar_summary(
             context.context().summary_writer_resource,
             training_util.get_global_step(),
             tag,
             tensor,
             name=scope)
コード例 #3
0
ファイル: summary_ops.py プロジェクト: appleship/tensorflow-1
 def function(tag, scope):
     # Note the identity to move the tensor to the CPU.
     return gen_summary_ops.write_scalar_summary(
         context.context().summary_writer_resource,
         _choose_step(step),
         tag,
         array_ops.identity(tensor),
         name=scope)
コード例 #4
0
 def function(tag, scope):
   # Note the identity to move the tensor to the CPU.
   return gen_summary_ops.write_scalar_summary(
       context.context().summary_writer_resource,
       _choose_step(step),
       tag,
       array_ops.identity(tensor),
       name=scope)
コード例 #5
0
ファイル: summary_ops.py プロジェクト: zyyj007/tensorflow
 def function(tag, scope):
     # Note the identity to move the tensor to the CPU.
     return gen_summary_ops.write_scalar_summary(
         context.context().summary_writer_resource,
         training_util.get_global_step(),
         tag,
         array_ops.identity(tensor),
         name=scope)
コード例 #6
0
ファイル: summary_writer.py プロジェクト: SylChan/tensorflow
  def scalar(self, name, tensor, family=None):
    """Write a scalar summary.

    Args:
      name: A name for the generated node. Will also serve as the series name in
        TensorBoard.
      tensor: A real numeric `Tensor` or compatible value type containing a
        single value.
      family: Optional; if provided, used as the prefix of the summary tag name,
        which controls the tab name used for display on Tensorboard.

    Returns:
      A summary writer function for scalars.
    """
    with context.device(self._CPU_DEVICE):
      with summary_op_util.summary_scope(
          name, family, values=[tensor]) as (tag, scope):
        gen_summary_ops.write_scalar_summary(
            self._resource, self._update_global_step_tensor(),
            tag, _maybe_cpu(tensor), name=scope)
コード例 #7
0
  def scalar(self, name, tensor, family=None):
    """Write a scalar summary.

    Args:
      name: A name for the generated node. Will also serve as the series name in
        TensorBoard.
      tensor: A real numeric `Tensor` or compatible value type containing a
        single value.
      family: Optional; if provided, used as the prefix of the summary tag name,
        which controls the tab name used for display on Tensorboard.

    Returns:
      A summary writer function for scalars.
    """
    with context.device(self._CPU_DEVICE):
      with summary_op_util.summary_scope(
          name, family, values=[tensor]) as (tag, scope):
        gen_summary_ops.write_scalar_summary(
            self._resource, self._update_global_step_tensor(),
            tag, _maybe_as_cpu_tensor(tensor), name=scope)
コード例 #8
0
ファイル: summary_ops.py プロジェクト: dyoung418/tensorflow
 def function(tag, scope):
   # Note the identity to move the tensor to the CPU.
   return gen_summary_ops.write_scalar_summary(
       context.context().summary_writer_resource,
       training_util.get_global_step(), tag, array_ops.identity(tensor),
       name=scope)
コード例 #9
0
ファイル: summary_ops.py プロジェクト: 1000sprites/tensorflow
 def function(tag, scope):
   gen_summary_ops.write_scalar_summary(
       context.context().summary_writer_resource,
       training_util.get_global_step(), tag, tensor, name=scope)
コード例 #10
0
ファイル: summary_ops.py プロジェクト: jiayouwyhit/tensorflow
 def record():
   with summary_op_util.summary_scope(
       name, family, values=[tensor]) as (tag, scope):
     gen_summary_ops.write_scalar_summary(
         context.context().summary_writer_resource,
         training_util.get_global_step(), tag, tensor, name=scope)