# tf_agents.policies.utils.populate_policy_info

<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/policies/utils.py#L127-L194) |

Populates policy info given all needed input.

    tf_agents.policies.utils.populate_policy_info(
        arm_observations: https://www.tensorflow.org/agents/api_docs/python/tf_agents/typing/types/Tensor,
        chosen_actions: https://www.tensorflow.org/agents/api_docs/python/tf_agents/typing/types/Tensor,
        rewards_for_argmax: https://www.tensorflow.org/agents/api_docs/python/tf_agents/typing/types/Tensor,
        est_rewards: https://www.tensorflow.org/agents/api_docs/python/tf_agents/typing/types/Tensor,
        emit_policy_info: Sequence[Text],
        accepts_per_arm_features: bool
    ) -> https://www.tensorflow.org/agents/api_docs/python/tf_agents/policies/utils/PolicyInfo

<br />

<br />

<br />

| ## Args ||
|---|---|
| `arm_observations` | In case the policy accepts per-arm feautures, this is a Tensor with the per-arm features. Otherwise its value is unused. |
| `chosen_actions` | A Tensor with the indices of the chosen actions. |
| `rewards_for_argmax` | The sampled or optimistically boosted reward estimates based on which the policy chooses the action greedily. |
| `est_rewards` | A Tensor with the rewards estimated by the model. |
| `emit_policy_info` | A set of policy info keys, specifying wich info fields to populate |
| `accepts_per_arm_features` | (bool) Whether the policy accepts per-arm features. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A policy info. ||

<br />