E.g. for a basic example with an Autoencoder and MNIST  see:

  
      

      kaggle.com
  

  
    

Digit Image Clustering via Autoencoder & kmeans 4

  Explore and run machine learning code with Kaggle Notebooks | Using data from Digit Recognizer