(self, mini_batch)
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
Function to handle any preprocessing before pushing an input
        mini-batch to the device.  For example, mean subtraction etc.
Function to handle any preprocessing before pushing an input mini - batch to the device . For example mean subtraction etc .
def gen_input(self, mini_batch):
        """
        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
        """
        self.inpbuf[:] = mini_batch
        # mean subtract
        if self.mean is not None:
            self.meansub_view[:] = -self.mean + self.meansub_view
def gen_input ( self , mini_batch ) : self . inpbuf [ : ] = mini_batch # mean subtract if self . mean is not None : self . meansub_view [ : ] = - self . mean + self . meansub_view