def METHOD_NAME(self, data_inst):
    ds = self.prepare_dataset(data_inst, data_type='predict')
    batch_size = len(ds) if self.batch_size == -1 else self.batch_size
    for batch_data in DataLoader(ds, batch_size=batch_size):
        # ignore label if the dataset offers label
        if isinstance(batch_data, tuple) and len(batch_data) > 1:
            batch_data = batch_data[0]
        self.model.METHOD_NAME(batch_data)