'Apply the forward pass transformation to the input data.
Arguments:
inputs (Tensor): input data
Returns:
Tensor: output data'

def fprop(self, inputs, inference=False):

    x = self.layers[0].fprop(inputs, inference)
    if inference:
        return x
    else:
        out = ([x] + [l.fprop(None) for l in self.layers[1:]])
        return out
