class_docstr: Manages the state of a single agent/environment interaction loop.
docstr: Run one unroll and send trajectory to learner.
code: def unroll_and_push(self, frame_count: int, params: hk.Params):
      """Run one unroll and send trajectory to learner."""
      params = jax.device_put(params)
      self._rng_key, subkey = jax.random.split(self._rng_key)
      act_out = self.unroll(
          rng_key=subkey,
          frame_count=frame_count,
          params=params,
          unroll_length=self._unroll_length,
      )
      self._learner.enqueue_traj(act_out)
  
file_path: dm-haiku/examples/impala/actor.py
imports: import dm_env
  import haiku
  from examples.impala import agent
  from examples.impala import learner
  from examples.impala import util
  import jax
  import numpy
label_desc: Use image node_id 3 for calling the Actor obj's underlying member method code with example usage: obj.unroll_and_push(frame_count, params) without return types