# tf_agents.trajectories.policy_step.set_log_probability

<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/trajectories/policy_step.py#L116-L124) |

Sets the CommonFields.LOG_PROBABILITY on info to be log_probability.

    tf_agents.trajectories.policy_step.set_log_probability(
        info: https://www.tensorflow.org/agents/api_docs/python/tf_agents/typing/types/NestedTensorOrArray,
        log_probability: https://www.tensorflow.org/agents/api_docs/python/tf_agents/typing/types/Float
    ) -> https://www.tensorflow.org/agents/api_docs/python/tf_agents/typing/types/NestedTensorOrArray