Skip to content
BIASED

Implement reparameterization

Structure check. The site checks the solution structure. Python is not executed.

Finish reparameterize: given mu and logvar =log⁡σ2= \log\sigma^2, draw ε∼N(0,I)\varepsilon \sim \mathcal N(0, I) and return z=μ+σ⊙εz = \mu + \sigma \odot \varepsilon. Everything should work element-wise on tensors of shape (batch, latent_dim).

The reparameterization trick