In SVI, if I want to pass a value that is produced by a neural network module in guide to model, what will be the best way to implement this?
Let’s say in a VAE, I want the encoder to produce an extra value that decoder can use, and this value is determinstic i.e. not sampled from any distribution.
As @martinjankowiak suggested, the idiomatic way to pass variables from guide to model is by sampling from a Delta distribution. I use this pattern often.