virtualing the backprop function for the layer shit, adding the jacobian term in the autoencoder class