In this tutorial in tensorflow site we can see a code for the implementation of an autoencoder which it\'s Decoder is as follows:
class Decoder(tf.keras.Model