# tf.summary.get_summary_description

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/summary/summary.py#L409-L436) |

Given a TensorSummary node_def, retrieve its SummaryDescription.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.summary.get_summary_description(
        node_def
    )

When a Summary op is instantiated, a SummaryDescription of associated
metadata is stored in its NodeDef. This method retrieves the description.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `node_def` | the node_def_pb2.NodeDef of a TensorSummary op |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| a summary_pb2.SummaryDescription ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | if the node is not a summary op. |

<br />

#### Eager Compatibility

Not compatible with eager execution. To write TensorBoard
summaries under eager execution, use [`tf.contrib.summary`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/summary) instead.