@staticmethod
def batchify_data(data, curr_batch):
    for k in data.keys():
        if (k in curr_batch.keys()):
            curr_batch[k] = torch.cat((curr_batch[k], data[k]), dim=0)
        else:
            curr_batch[k] = data[k]
    return curr_batch
@staticmethod
def batchify_data(data, curr_batch):
    for k in data.keys():
        if (k in curr_batch.keys()):
            curr_batch[k] = torch.cat((curr_batch[k], data[k]), dim=0)
        else:
            curr_batch[k] = data[k]
    return curr_batch