'Prepare data for delivery to device.
Arguments:
time_steps (int): Number of time steps in this minibatch.
inputs (numpy array): Inputs numpy array
outputs (numpy array): Outputs numpy array
in_tensor (Tensor): Device buffer holding inputs
out_tensor (Tensor): Device buffer holding outputs
mask (numpy array): Device buffer for the output mask'

def fill_buffers(self, time_steps, inputs, outputs, in_tensor, out_tensor, mask):

    columns = (time_steps * self.be.bsz)
    inC = np.zeros((self.nin, self.max_columns))
    outC = np.zeros((self.nout, self.max_columns))
    inC[:, :columns] = inputs
    outC[:, :columns] = outputs
    in_tensor.set(inC)
    out_tensor.set(outC)
    mask[:, :columns] = 1
    mask[:, columns:] = 0
