# tf.raw_ops.HistogramSummary

<br />

Outputs a `Summary` protocol buffer with a histogram.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.raw_ops.HistogramSummary`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/HistogramSummary)

<br />

    tf.raw_ops.HistogramSummary(
        tag, values, name=None
    )

The generated
[`Summary`](https://www.tensorflow.org/code/tensorflow/core/framework/summary.proto)
has one summary value containing a histogram for `values`.

This op reports an `InvalidArgument` error if any value is not finite.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `tag` | A `Tensor` of type `string`. Scalar. Tag to use for the `Summary.Value`. |
| `values` | A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `int64`, `bfloat16`, `uint16`, `half`, `uint32`, `uint64`. Any shape. Values to use to build the histogram. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor` of type `string`. ||

<br />