def update(self, vals):
    if ((self.counter % self.log_every) == 0):
        print(('*' * 10))
        print('log')
        for i in range(len(self.locs)):
            self.meters[i].update(self.grid[(self.locs[i], 0)].detach().cpu().numpy(), vals[self.locs[i]].detach().cpu().numpy())
    self.counter += 1
def update(self, vals):
    if ((self.counter % self.log_every) == 0):
        print(('*' * 10))
        print('log')
        for i in range(len(self.locs)):
            self.meters[i].update(self.grid[(self.locs[i], 0)].detach().cpu().numpy(), vals[self.locs[i]].detach().cpu().numpy())
    self.counter += 1