Hi,
I have trained an autoencoder to get the lower dimensional representation of a image dataset.
Now I have saved the model. Then I load it and I want to remove the weights of the decoders. With the weights of the encoder I want to intiatlise the conv layers of a CNN classifier. This CNN classifier has same structure with the encoder of the autoencoder. Can anyone help me?
Basically I want to implement this project(implemented in keras)in pytorch:

  
      
      DataCamp Community – 20 Jul 18
  
  
    

Autoencoder as a Classifier 5

In this tutorial, you will learn & understand how to use autoencoder as a classifier in Python with Keras. You'll be using Fashion-MNIST dataset as an example.