# This model maps an input to its encoded representation encoder = keras.Model(input_img, encoded)