openai / iaf

Code for reproducing key results in the paper "Improving Variational Inference with Inverse Autoregressive Flow"
https://arxiv.org/abs/1606.04934
MIT License
517 stars 130 forks source link

Constant variance for the generating network of autoencoder #9

Open dugarsumit opened 7 years ago

dugarsumit commented 7 years ago

Why are we using constant variance for the generating network of autoencoder instead of learning it like mean from the network itself. What advantage does it have over the learnable variance? This is done in the models.py file at line numbers 473 and 681.

mean_x = T.clip(output+.5, 0+1/512., 1-1/512.) *logsd_x = 0mean_x + w['logsd_x']**