Merge pull request #33 from kelvinkoh0308/patch-10

Update vae.py
This commit is contained in:
Jackie Loong
2019-09-17 20:50:49 +10:00
committed by GitHub

View File

@@ -81,7 +81,7 @@ class VAE(keras.Model):
eps = tf.random.normal(log_var.shape)
std = tf.exp(log_var*0.5)
std = tf.exp(log_var)**0.5
z = mu + std * eps
return z