docstr: load replay memory from local file (numpy file format: *.npz).
          
docstr_tok: ["load","replay","memory","from","local","file","(","numpy","file","format",":","*",".npz",")","."]
code: def load(self, pathname):
      """load replay memory from local file (numpy file format: *.npz)."""
      data = np.load(pathname)
      other = data["other"]
      if int(other[0]) > self.max_size:
          logger.warn("loading from a bigger size rpm!")
      self._curr_size = min(int(other[0]), self.max_size)
      self._curr_pos = min(int(other[1]), self.max_size - 1)
  
      self.obs[: self._curr_size] = data["obs"][: self._curr_size]
      self.action[: self._curr_size] = data["action"][: self._curr_size]
      self.reward[: self._curr_size] = data["reward"][: self._curr_size]
      self.terminal[: self._curr_size] = data["terminal"][
          : self._curr_size
      ]
      self.next_obs[: self._curr_size] = data["next_obs"][
          : self._curr_size
      ]
      logger.info("[load rpm]memory loade from {}".format(pathname))
  
file_path: PARL/parl/utils/replay_memory.py
imports: import numpy
  from parl.utils import logger
label_desc: Use image node_id 9 for calling the ReplayMemory obj's underlying member method code with example usage: obj.load(pathname) without return types