<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/trajectory.py#L898-L909) |

Break experience to transitions.

    tf_agents.trajectories.trajectory.experience_to_transitions(
        experience: https://www.tensorflow.org/agents/api_docs/python/tf_agents/trajectories/Trajectory,
        squeeze_time_dim: bool
    ) -> https://www.tensorflow.org/agents/api_docs/python/tf_agents/trajectories/Transition