コード例 #1
0
ファイル: summaries.py プロジェクト: Laserbear/tensorflow-1
def _add_histogram_summary(tensor, tag=None):
    """Add a summary operation for the histogram of a tensor.

  Args:
    tensor: The tensor to summarize.
    tag: The tag to use, if None then use tensor's op's name.

  Returns:
    The created histogram summary.

  Raises:
    ValueError: If the tag is already in use.
  """
    tag = tag or tensor.op.name
    _assert_summary_tag_unique(tag)
    return standard_ops.histogram_summary(tag, tensor, name='%s_summary' % tag)
コード例 #2
0
ファイル: summaries.py プロジェクト: 0ruben/tensorflow
def _add_histogram_summary(tensor, tag=None):
  """Add a summary operation for the histogram of a tensor.

  Args:
    tensor: The tensor to summarize.
    tag: The tag to use, if None then use tensor's op's name.

  Returns:
    The created histogram summary.

  Raises:
    ValueError: If the tag is already in use.
  """
  tag = tag or tensor.op.name
  assert_summary_tag_unique(tag)
  return standard_ops.histogram_summary(tag, tensor, name='%s_summary' % tag)