Closed csmith49 closed 3 years ago
Hi, I fixed this on the master branch but errors persist. The code you provided runs on the dice branch https://github.com/HEmile/storchastic/tree/dice though. However, RELAX is a rather challenging and bug-prone estimator to implement, and I'm not convinced it's completely correct right now.
Your provided example runs with sample = RELAX("sample", in_dim=1)(d)
on the master branch.
RELAX and REBAR gradient estimators don't appear to be usable on Bernoulli random variables - some operation expects them to have the
mc_sample
attribute, which is missing.I can reproduce this result with the following:
which produces the following trace: