Consider the following code (Pyro 0.3):
isCorrect1 = pyro.sample("isCorrect1", dist.Bernoulli(.3), obs=torch.tensor(1.))
the output is
/Users/erlebach/anaconda3/lib/python3.7/site-packages/pyro/primitives.py:71: RuntimeWarning: trying to observe a value outside of inference at isCorrect1
My question is "Why do I get this warning?". The support of the Bernoulli distribution is 0 and 1 (not clear what type).