Defining the decoder

Define the decoder with two layers:

decoder_hidden = Dense(intermediate_dim, activation='relu')
decoder_reconstruct = Dense(original_dim, activation='sigmoid')

Reconstruct the images using decoder which takes the latent vector as input and returns the reconstructed image:

decoded = decoder_hidden(z)
reconstructed = decoder_reconstruct(decoded)
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset