# tf_agents.utils.nest_utils.assert_value_spec

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/utils/nest_utils.py#L1253-L1285) |

Checks that `output_spec` is a nest of "value" type values.

    tf_agents.utils.nest_utils.assert_value_spec(
        output_spec: https://www.tensorflow.org/agents/api_docs/python/tf_agents/typing/types/NestedTensorSpec,
        network_name: str
    )

"value" type values correspond to floating point tensors with spec shape
`()` or `(1,)`.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `output_spec` | The output spec returned by [`network.create_variables`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/networks/network/create_variables). |
| `network_name` | The string name of the network for error messages. |

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | If `output_spec` is not a nest of value-type tensors. |

<br />