View source on GitHub |
Get the params for an optionally nested action distribution.
tf_agents.agents.ppo.ppo_utils.get_distribution_params(
nested_distribution: tf_agents.typing.types.NestedDistribution
,
legacy_distribution_network: bool
) -> tf_agents.typing.types.NestedTensor
Only returns parameters that have tf.Tensor values.
Returns | |
---|---|
A nest of distribution parameters. Each leaf is a dict corresponding to one distribution, with keys as parameter name and values as tensors containing parameter values. |