Skip to content

Commit

Permalink
Typo in the doc example. The parameter value in the code is a, where …
Browse files Browse the repository at this point in the history
…as in the example was s (#3298)

Co-authored-by: Pavle Boškoski <pavle.boskoski@ijs.si>
  • Loading branch information
pavleb and pboskoski committed Dec 1, 2023
1 parent c1ebdf3 commit 1b80fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyro/poutine/substitute_messenger.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class SubstituteMessenger(Messenger):
... a = pyro.param("a", torch.tensor(0.5))
... x = pyro.sample("x", dist.Bernoulli(probs=a))
... return x
>>> substituted_model = pyro.poutine.substitute(model, data={"s": 0.3})
>>> substituted_model = pyro.poutine.substitute(model, data={"a": 0.3})
In this example, site `a` will now have value `0.3`.
:param data: dictionary of values keyed by site names.
Expand Down

0 comments on commit 1b80fc2

Please sign in to comment.