|
z = mean + 1e-4 * torch.exp(log_v * 0.5) * torch.randn(mean.size()).to(self.device) |
|
z_p = mean_p + 1e-4 * torch.exp(log_v_p * 0.5) * torch.randn(mean_p.size()).to(self.device) |
- What is the meaning of 1e-4 here?
- (Critical question) Does this restriction on the standard deviation weaken the distribution so that it degenerates to a fixed-point representation of the mean?
I removed the coefficient of 1e-4 (i.e. the coefficient was changed to 1) and conducted the experiment again, found that the effect dropped significantly.