Skip to content

Commit

Permalink
Fix for FluxML#301 according to discourse
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrube authored May 8, 2021
1 parent b71bf7b commit 0436b34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vision/vae_mnist/vae_mnist.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ function reconstuct(encoder, decoder, x, device)
μ, logσ, decoder(z)
end

Flux.Zygote.@nograd Flux.params
function model_loss(encoder, decoder, λ, x, device)
μ, logσ, decoder_z = reconstuct(encoder, decoder, x, device)
len = size(x)[end]
Expand Down

0 comments on commit 0436b34

Please sign in to comment.