Define the input:
x = Input(shape=(original_dim,))
Encoder hidden layer:
h = Dense(intermediate_dim, activation='relu')(x)
Compute the mean and the variance:
z_mean = Dense(latent_dim)(h)
z_log_var = Dense(latent_dim)(h)
Define the input:
x = Input(shape=(original_dim,))
Encoder hidden layer:
h = Dense(intermediate_dim, activation='relu')(x)
Compute the mean and the variance:
z_mean = Dense(latent_dim)(h)
z_log_var = Dense(latent_dim)(h)