I'm seeing an odd behavior when contexts are included. If I compare the log probabilities output by sample_and_log_prob with the log probabilities calculated by log_prob on the samples returned by sample_and_log_prob I get different results:
I think I've tracked it down somewhat to the fact that the noise produced in sample_and_log_prob does not match the reconstruction of the noise in log_prob.
I'm seeing an odd behavior when contexts are included. If I compare the log probabilities output by
sample_and_log_prob
with the log probabilities calculated bylog_prob
on the samples returned bysample_and_log_prob
I get different results:I think I've tracked it down somewhat to the fact that the noise produced in
sample_and_log_prob
does not match the reconstruction of the noise inlog_prob
.Noise sampled in
sample_and_log_prob
:Noise reconstructed in
log_prob
:If I run the same test without contexts there is no discrepancy between the log probabilities. I've included my test case as well:
EDIT
nvm, i see I missed including the context with the log_prob. Tough to calculate the proper log probability without the context.