SFN implementation for deep autoencoder