code: def add(self, datapoint):
          
          if not self.is_full:
              self.set_datapoint(self.cur_index, datapoint)
              self.cur_index += 1
docs: Adds the datapoint to the tensor if room is available.