'Function to handle any preprocessing before pushing an input
mini-batch to the device.  For example, mean subtraction etc.
Arguments:
mini_batch (ndarray): M-by-N array where M is the flatten
input vector size and N is the batch size'

def gen_input(self, mini_batch):

    self.inpbuf[:] = mini_batch
    if (self.mean is not None):
        self.meansub_view[:] = ((- self.mean) + self.meansub_view)
