Due to the version update of pytorch, the likelihood calculation of Bernoulli distribution is now defined only for {0, 1}.
In order to use Bernoulli distribution for modeling continuous values such as pixel luminance, Bernoulli.log_prob was overridden to avoid errors in the conventional usage.
Due to the version update of pytorch, the likelihood calculation of Bernoulli distribution is now defined only for {0, 1}.
In order to use Bernoulli distribution for modeling continuous values such as pixel luminance,
Bernoulli.log_prob
was overridden to avoid errors in the conventional usage.