Fixed reference to n_layers in SdA reconstruct_input