tf_agents.utils.nest_utils.assert_value_spec

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

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

output_spec The output spec returned by network.create_variables.
network_name The string name of the network for error messages.

ValueError If output_spec is not a nest of value-type tensors.