docstr: Adds a frame to the buffer
  
  :param enc_obs: ([float]) the encoded observation
  :param actions: ([float]) the actions
  :param rewards: ([float]) the rewards
  :param mus: ([float]) the policy probability for the actions
  :param dones: ([bool])
  :param masks: ([bool])
code: def put(self, enc_obs, actions, rewards, mus, dones, masks):
      """
      Adds a frame to the buffer
  
      :param enc_obs: ([float]) the encoded observation
      :param actions: ([float]) the actions
      :param rewards: ([float]) the rewards
      :param mus: ([float]) the policy probability for the actions
      :param dones: ([bool])
      :param masks: ([bool])
      """
      # enc_obs [n_env, (n_steps + n_stack), nh, nw, nc]
      # actions, rewards, dones [n_env, n_steps]
      # mus [n_env, n_steps, n_act]
  
      if self.enc_obs is None:
          self.enc_obs = np.empty(
              [self.size] + list(enc_obs.shape), dtype=self.obs_dtype
          )
          self.actions = np.empty(
              [self.size] + list(actions.shape), dtype=np.int32
          )
          self.rewards = np.empty(
              [self.size] + list(rewards.shape), dtype=np.float32
          )
          self.mus = np.empty(
              [self.size] + list(mus.shape), dtype=np.float32
          )
          self.dones = np.empty(
              [self.size] + list(dones.shape), dtype=np.bool
          )
          self.masks = np.empty(
              [self.size] + list(masks.shape), dtype=np.bool
          )
  
      self.enc_obs[self.next_idx] = enc_obs
      self.actions[self.next_idx] = actions
      self.rewards[self.next_idx] = rewards
      self.mus[self.next_idx] = mus
      self.dones[self.next_idx] = dones
      self.masks[self.next_idx] = masks
  
      self.next_idx = (self.next_idx + 1) % self.size
      self.num_in_buffer = min(self.size, self.num_in_buffer + 1)
  
file_path: stable-baselines/stable_baselines/acer/buffer.py
imports: import numpy
label_desc: Use image node_id 5 for calling the Buffer obj's underlying member method code with example usage: obj.put(enc_obs, actions, rewards, mus, dones, masks) without return types