class_docstr: Replay buffer for HER (Hindsight Experience Replay).
  
  It constructs hindsight examples using future strategy.
  
  Args:
      replay_k (int): Number of HER transitions to add for each regular
          Transition. Setting this to 0 means that no HER replays will
          be added.
      reward_fn (callable): Function to re-compute the reward with
          substituted goals.
      capacity_in_transitions (int): total size of transitions in the buffer.
      env_spec (EnvSpec): Environment specification.
class_docstr_tok: ["Replay","buffer","for","HER","(","Hindsight","Experience","Replay",")",".","It","constructs","hindsight","examples","using","future","strategy",".","Args",":","replay_k","(","int",")",":","Number","of","HER","transitions","to","add","for","each","regular","Transition",".","Setting","this","to","0","means","that","no","HER","replays","will","be","added",".","reward_fn","(","callable",")",":","Function","to","re-compute","the","reward","with","substituted","goals",".","capacity_in_transitions","(","int",")",":","total","size","of","transitions","in","the","buffer",".","env_spec","(","EnvSpec",")",":","Environment","specification","."]
docstr: Object.__setstate__.
  
  Args:
      state (dict): Unpickled state.
docstr_tok: ["Object.__setstate__",".","Args",":","state","(","dict",")",":","Unpickled","state","."]
code: def __setstate__(self, state):
      """Object.__setstate__.
  
      Args:
          state (dict): Unpickled state.
  
      """
      self.__dict__ = state
  
file_path: garage/src/garage/replay_buffer/her_replay_buffer.py
imports: import copy
  import numpy
  from garage.replay_buffer.path_buffer import PathBuffer
label_desc: Use image node_id 6 for calling the HERReplayBuffer obj's underlying member method code with example usage: obj.__setstate__(state) without return types