class_docstr: A simple FIFO experience replay buffer for TD3 agents.
class_docstr_tok: ["A","simple","FIFO","experience","replay","buffer","for","TD3","agents","."]
code: def store(self, obs, act, rew, next_obs, done):
      self.obs_buf[self.ptr] = obs
      self.obs2_buf[self.ptr] = next_obs
      self.act_buf[self.ptr] = act
      self.rew_buf[self.ptr] = rew
      self.done_buf[self.ptr] = done
      self.ptr = (self.ptr + 1) % self.max_size
      self.size = min(self.size + 1, self.max_size)
  
file_path: spinningup/spinup/exercises/pytorch/problem_set_1/exercise1_3.py
imports: from copy import deepcopy
  import itertools
  import numpy
  import torch
  from torch.optim import Adam
  import gym
  import time
  import spinup.algos.pytorch.td3.core
  from spinup.algos.pytorch.td3.td3 import td3
  from spinup.utils.logx import EpochLogger
label_desc: Use image node_id 2 for calling the ReplayBuffer obj's underlying member method code with example usage: obj.store(obs, act, rew, next_obs, done) without return types