autoencoder in c++