diff --git a/tutorial/source/enumeration.ipynb b/tutorial/source/enumeration.ipynb index b7e7d8df12..e4f1dcc7fc 100644 --- a/tutorial/source/enumeration.ipynb +++ b/tutorial/source/enumeration.ipynb @@ -527,9 +527,9 @@ " plate_1 = pyro.plate(\"plate_1\", 10, dim=-1) # vectorized\n", " plate_2 = pyro.plate(\"plate_2\", 10, dim=-2) # vectorized\n", " with plate_1:\n", - " x = pyro.sample(\"y\", dist.Bernoulli(0.5))\n", + " x = pyro.sample(\"x\", dist.Bernoulli(0.5))\n", " with plate_2:\n", - " y = pyro.sample(\"x\", dist.Bernoulli(0.5))\n", + " y = pyro.sample(\"y\", dist.Bernoulli(0.5))\n", " with plate_1, plate2:\n", " z = pyro.sample(\"z\", dist.Bernoulli((1. + x + y) / 4.))\n", " ...\n", @@ -543,9 +543,9 @@ " plate_1 = pyro.plate(\"plate_1\", 10, dim=-1) # vectorized\n", " plate_2 = pyro.plate(\"plate_2\", 10) # sequential\n", " with plate_1:\n", - " x = pyro.sample(\"y\", dist.Bernoulli(0.5))\n", + " x = pyro.sample(\"x\", dist.Bernoulli(0.5))\n", " for i in plate_2:\n", - " y = pyro.sample(f\"x_{i}\", dist.Bernoulli(0.5))\n", + " y = pyro.sample(f\"y_{i}\", dist.Bernoulli(0.5))\n", " with plate_1:\n", " z = pyro.sample(f\"z_{i}\", dist.Bernoulli((1. + x + y) / 4.))\n", " ...\n",