<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.21.0/tensorflow/python/ops/summary_ops_v2.py#L820-L872) |

Writes a summary using raw [`tf.compat.v1.Summary`](https://www.tensorflow.org/api_docs/python/tf/compat/v1/Summary) protocol buffers.

    tf.summary.experimental.write_raw_pb(
        tensor, step=None, name=None
    )

> [!WARNING]
> **Experimental:** this exists to support the usage of V1-style manual summary writing (via the construction of a [`tf.compat.v1.Summary`](https://www.tensorflow.org/api_docs/python/tf/compat/v1/Summary) protocol buffer) with the V2 summary writing API.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `tensor` | the string Tensor holding one or more serialized `Summary` protobufs |
| `step` | Explicit `int64`-castable monotonic step value for this summary. If omitted, this defaults to [`tf.summary.experimental.get_step()`](https://www.tensorflow.org/api_docs/python/tf/summary/experimental/get_step), which must not be None. |
| `name` | Optional string name for this op. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| True on success, or false if no summary was written because no default summary writer was available. ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | if a default writer exists, but no step was provided and [`tf.summary.experimental.get_step()`](https://www.tensorflow.org/api_docs/python/tf/summary/experimental/get_step) is None. |

<br />