diff --git a/examples/air/main.py b/examples/air/main.py index ca01c3e843..56fcd902c2 100644 --- a/examples/air/main.py +++ b/examples/air/main.py @@ -272,7 +272,7 @@ def per_param_optim_args(param_name): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser( description="Pyro AIR example", argument_default=argparse.SUPPRESS ) diff --git a/examples/baseball.py b/examples/baseball.py index 1fbc2f7639..8523b7ffd4 100644 --- a/examples/baseball.py +++ b/examples/baseball.py @@ -391,7 +391,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser(description="Baseball batting average using HMC") parser.add_argument("-n", "--num-samples", nargs="?", default=200, type=int) parser.add_argument("--num-chains", nargs="?", default=4, type=int) diff --git a/examples/contrib/autoname/mixture.py b/examples/contrib/autoname/mixture.py index ecff7f8ad6..e512a7a98d 100644 --- a/examples/contrib/autoname/mixture.py +++ b/examples/contrib/autoname/mixture.py @@ -74,7 +74,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser(description="parse args") parser.add_argument("-n", "--num-epochs", default=200, type=int) parser.add_argument("--jit", action="store_true") diff --git a/examples/contrib/autoname/scoping_mixture.py b/examples/contrib/autoname/scoping_mixture.py index 40ecab0584..2630987ca1 100644 --- a/examples/contrib/autoname/scoping_mixture.py +++ b/examples/contrib/autoname/scoping_mixture.py @@ -71,7 +71,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser(description="parse args") parser.add_argument("-n", "--num-epochs", default=200, type=int) args = parser.parse_args() diff --git a/examples/contrib/autoname/tree_data.py b/examples/contrib/autoname/tree_data.py index 16fec3773d..72bfe58059 100644 --- a/examples/contrib/autoname/tree_data.py +++ b/examples/contrib/autoname/tree_data.py @@ -104,7 +104,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser(description="parse args") parser.add_argument("-n", "--num-epochs", default=100, type=int) args = parser.parse_args() diff --git a/examples/contrib/cevae/synthetic.py b/examples/contrib/cevae/synthetic.py index e7fdb137b0..50d2d22f90 100644 --- a/examples/contrib/cevae/synthetic.py +++ b/examples/contrib/cevae/synthetic.py @@ -86,7 +86,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser( description="Causal Effect Variational Autoencoder" ) diff --git a/examples/contrib/epidemiology/regional.py b/examples/contrib/epidemiology/regional.py index 03c92e0d8e..ddccc92a66 100644 --- a/examples/contrib/epidemiology/regional.py +++ b/examples/contrib/epidemiology/regional.py @@ -166,7 +166,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser( description="Regional compartmental epidemiology modeling using HMC" ) diff --git a/examples/contrib/epidemiology/sir.py b/examples/contrib/epidemiology/sir.py index eb8d4daa03..c805f202f5 100644 --- a/examples/contrib/epidemiology/sir.py +++ b/examples/contrib/epidemiology/sir.py @@ -334,7 +334,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser( description="Compartmental epidemiology modeling using HMC" ) diff --git a/examples/contrib/forecast/bart.py b/examples/contrib/forecast/bart.py index 3c4b30e5b8..fb7b1d9ee3 100644 --- a/examples/contrib/forecast/bart.py +++ b/examples/contrib/forecast/bart.py @@ -165,7 +165,7 @@ def transform(pred, truth): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser(description="Bart Ridership Forecasting Example") parser.add_argument("--train-window", default=2160, type=int) parser.add_argument("--test-window", default=336, type=int) diff --git a/examples/contrib/funsor/hmm.py b/examples/contrib/funsor/hmm.py index aac6fad61f..ef93259179 100644 --- a/examples/contrib/funsor/hmm.py +++ b/examples/contrib/funsor/hmm.py @@ -819,7 +819,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser( description="MAP Baum-Welch learning Bach Chorales" ) diff --git a/examples/contrib/gp/sv-dkl.py b/examples/contrib/gp/sv-dkl.py index 86532ebcba..27d80647b3 100644 --- a/examples/contrib/gp/sv-dkl.py +++ b/examples/contrib/gp/sv-dkl.py @@ -193,7 +193,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser(description="Pyro GP MNIST Example") parser.add_argument( "--data-dir", diff --git a/examples/contrib/oed/ab_test.py b/examples/contrib/oed/ab_test.py index ee9b7387a3..b650291615 100644 --- a/examples/contrib/oed/ab_test.py +++ b/examples/contrib/oed/ab_test.py @@ -125,7 +125,7 @@ def main(num_vi_steps, num_bo_steps, seed): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser(description="A/B test experiment design using VI") parser.add_argument("-n", "--num-vi-steps", nargs="?", default=5000, type=int) parser.add_argument("--num-bo-steps", nargs="?", default=5, type=int) diff --git a/examples/contrib/timeseries/gp_models.py b/examples/contrib/timeseries/gp_models.py index 52b35b0ed4..3229ec87ff 100644 --- a/examples/contrib/timeseries/gp_models.py +++ b/examples/contrib/timeseries/gp_models.py @@ -186,7 +186,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser(description="contrib.timeseries example usage") parser.add_argument("-n", "--num-steps", default=300, type=int) parser.add_argument("-s", "--seed", default=0, type=int) diff --git a/examples/cvae/main.py b/examples/cvae/main.py index 35b8d8c60e..4d9763dd06 100644 --- a/examples/cvae/main.py +++ b/examples/cvae/main.py @@ -87,7 +87,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") # parse command line arguments parser = argparse.ArgumentParser(description="parse args") parser.add_argument( diff --git a/examples/dmm.py b/examples/dmm.py index 6085418413..b59e07fec9 100644 --- a/examples/dmm.py +++ b/examples/dmm.py @@ -571,7 +571,7 @@ def do_evaluation(): # parse command-line arguments and execute the main method if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser(description="parse args") parser.add_argument("-n", "--num-epochs", type=int, default=5000) diff --git a/examples/eight_schools/mcmc.py b/examples/eight_schools/mcmc.py index c0ab766b91..031582299b 100644 --- a/examples/eight_schools/mcmc.py +++ b/examples/eight_schools/mcmc.py @@ -43,7 +43,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser(description="Eight Schools MCMC") parser.add_argument( "--num-samples", diff --git a/examples/eight_schools/svi.py b/examples/eight_schools/svi.py index 11a0cb1b18..4fa4368287 100644 --- a/examples/eight_schools/svi.py +++ b/examples/eight_schools/svi.py @@ -81,7 +81,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser(description="Eight Schools SVI") parser.add_argument( "--lr", type=float, default=0.01, help="learning rate (default: 0.01)" diff --git a/examples/hmm.py b/examples/hmm.py index 762dd52464..83a8b8fbcf 100644 --- a/examples/hmm.py +++ b/examples/hmm.py @@ -734,7 +734,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser( description="MAP Baum-Welch learning Bach Chorales" ) diff --git a/examples/inclined_plane.py b/examples/inclined_plane.py index f50e2a4641..e1c4163670 100644 --- a/examples/inclined_plane.py +++ b/examples/inclined_plane.py @@ -145,7 +145,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser(description="parse args") parser.add_argument("-n", "--num-samples", default=500, type=int) args = parser.parse_args() diff --git a/examples/lda.py b/examples/lda.py index 836e37832c..5d9cc63925 100644 --- a/examples/lda.py +++ b/examples/lda.py @@ -149,7 +149,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser( description="Amortized Latent Dirichlet Allocation" ) diff --git a/examples/lkj.py b/examples/lkj.py index 9d6bbf4e47..d0447b431d 100644 --- a/examples/lkj.py +++ b/examples/lkj.py @@ -56,7 +56,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser(description="Demonstrate the use of an LKJ Prior") parser.add_argument("--num-samples", nargs="?", default=200, type=int) parser.add_argument("--n", nargs="?", default=500, type=int) diff --git a/examples/minipyro.py b/examples/minipyro.py index a0ecc48e87..c81988e662 100644 --- a/examples/minipyro.py +++ b/examples/minipyro.py @@ -65,7 +65,7 @@ def guide(data): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser(description="Mini Pyro demo") parser.add_argument("-b", "--backend", default="minipyro") parser.add_argument("-n", "--num-steps", default=1001, type=int) diff --git a/examples/neutra.py b/examples/neutra.py index b2aa04c704..f499629f49 100644 --- a/examples/neutra.py +++ b/examples/neutra.py @@ -232,7 +232,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser( description="Example illustrating NeuTra Reparametrizer" ) diff --git a/examples/rsa/generics.py b/examples/rsa/generics.py index 17a78c6e31..ae16395435 100644 --- a/examples/rsa/generics.py +++ b/examples/rsa/generics.py @@ -177,7 +177,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser(description="parse args") parser.add_argument("-n", "--num-samples", default=10, type=int) args = parser.parse_args() diff --git a/examples/rsa/hyperbole.py b/examples/rsa/hyperbole.py index 46179e9ab3..462d93b6fc 100644 --- a/examples/rsa/hyperbole.py +++ b/examples/rsa/hyperbole.py @@ -217,7 +217,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser(description="parse args") parser.add_argument("-n", "--num-samples", default=10, type=int) parser.add_argument("--price", default=10000, type=int) diff --git a/examples/rsa/schelling.py b/examples/rsa/schelling.py index c0212f9649..fec5f1dc23 100644 --- a/examples/rsa/schelling.py +++ b/examples/rsa/schelling.py @@ -79,7 +79,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser(description="parse args") parser.add_argument("-n", "--num-samples", default=10, type=int) parser.add_argument("--depth", default=2, type=int) diff --git a/examples/rsa/schelling_false.py b/examples/rsa/schelling_false.py index 3d66c0ffec..78badb819d 100644 --- a/examples/rsa/schelling_false.py +++ b/examples/rsa/schelling_false.py @@ -96,7 +96,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser(description="parse args") parser.add_argument("-n", "--num-samples", default=10, type=int) parser.add_argument("--depth", default=3, type=int) diff --git a/examples/rsa/semantic_parsing.py b/examples/rsa/semantic_parsing.py index 87d82d76fa..71210b2adb 100644 --- a/examples/rsa/semantic_parsing.py +++ b/examples/rsa/semantic_parsing.py @@ -351,7 +351,7 @@ def is_all_qud(world): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser(description="parse args") parser.add_argument("-n", "--num-samples", default=10, type=int) args = parser.parse_args() diff --git a/examples/scanvi/scanvi.py b/examples/scanvi/scanvi.py index b8416f09b8..3ddd7e404b 100644 --- a/examples/scanvi/scanvi.py +++ b/examples/scanvi/scanvi.py @@ -407,7 +407,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") # Parse command line arguments parser = argparse.ArgumentParser( description="single-cell ANnotation using Variational Inference" diff --git a/examples/sir_hmc.py b/examples/sir_hmc.py index b2aac07b57..acd9318aa5 100644 --- a/examples/sir_hmc.py +++ b/examples/sir_hmc.py @@ -639,7 +639,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser(description="SIR epidemiology modeling using HMC") parser.add_argument("-p", "--population", default=10, type=int) parser.add_argument("-m", "--min-observations", default=3, type=int) diff --git a/examples/sparse_gamma_def.py b/examples/sparse_gamma_def.py index ca819ff9f9..b9c39ad890 100644 --- a/examples/sparse_gamma_def.py +++ b/examples/sparse_gamma_def.py @@ -269,7 +269,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") # parse command line arguments parser = argparse.ArgumentParser(description="parse args") parser.add_argument( diff --git a/examples/sparse_regression.py b/examples/sparse_regression.py index 166bec43f3..be8f1f09a3 100644 --- a/examples/sparse_regression.py +++ b/examples/sparse_regression.py @@ -364,7 +364,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser(description="Krylov KIT") parser.add_argument("--num-data", type=int, default=750) parser.add_argument("--num-steps", type=int, default=1000) diff --git a/examples/svi_horovod.py b/examples/svi_horovod.py index 271a0d3e0f..8d2df18116 100644 --- a/examples/svi_horovod.py +++ b/examples/svi_horovod.py @@ -154,7 +154,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser(description="Distributed training via Horovod") parser.add_argument("-o", "--outfile") parser.add_argument("-s", "--size", default=1000000, type=int) diff --git a/examples/toy_mixture_model_discrete_enumeration.py b/examples/toy_mixture_model_discrete_enumeration.py index cbc709ac85..26782ff073 100644 --- a/examples/toy_mixture_model_discrete_enumeration.py +++ b/examples/toy_mixture_model_discrete_enumeration.py @@ -133,7 +133,7 @@ def get_true_pred_CPDs(CPD, posterior_param): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser(description="Toy mixture model") parser.add_argument("-n", "--num-steps", default=4000, type=int) parser.add_argument("-o", "--num-obs", default=10000, type=int) diff --git a/examples/vae/ss_vae_M2.py b/examples/vae/ss_vae_M2.py index fa0c04ea5c..ffda5a84a1 100644 --- a/examples/vae/ss_vae_M2.py +++ b/examples/vae/ss_vae_M2.py @@ -433,7 +433,7 @@ def main(args): ) if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser(description="SS-VAE\n{}".format(EXAMPLE_RUN)) diff --git a/examples/vae/vae.py b/examples/vae/vae.py index 069ec32490..39d3fb9e5f 100644 --- a/examples/vae/vae.py +++ b/examples/vae/vae.py @@ -216,7 +216,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") # parse command line arguments parser = argparse.ArgumentParser(description="parse args") parser.add_argument( diff --git a/examples/vae/vae_comparison.py b/examples/vae/vae_comparison.py index 9f7e85e15a..c9c7375dba 100644 --- a/examples/vae/vae_comparison.py +++ b/examples/vae/vae_comparison.py @@ -262,7 +262,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith("1.7.0") + assert pyro.__version__.startswith("1.8.0") parser = argparse.ArgumentParser(description="VAE using MNIST dataset") parser.add_argument("-n", "--num-epochs", nargs="?", default=10, type=int) parser.add_argument("--batch_size", nargs="?", default=128, type=int) diff --git a/pyro/__init__.py b/pyro/__init__.py index 2658f03ebf..d4ad1ef492 100644 --- a/pyro/__init__.py +++ b/pyro/__init__.py @@ -26,7 +26,7 @@ from pyro.util import set_rng_seed # After changing this, run scripts/update_version.py -version_prefix = "1.7.0" +version_prefix = "1.8.0" # Get the __version__ string from the auto-generated _version.py file, if exists. try: diff --git a/tutorial/source/air.ipynb b/tutorial/source/air.ipynb index a3ac1857e8..ddbba3f727 100644 --- a/tutorial/source/air.ipynb +++ b/tutorial/source/air.ipynb @@ -41,7 +41,7 @@ "import numpy as np\n", "\n", "smoke_test = ('CI' in os.environ)\n", - "assert pyro.__version__.startswith('1.7.0')" + "assert pyro.__version__.startswith('1.8.0')" ] }, { diff --git a/tutorial/source/bayesian_regression.ipynb b/tutorial/source/bayesian_regression.ipynb index e9b7c1c8ef..d25eebea20 100644 --- a/tutorial/source/bayesian_regression.ipynb +++ b/tutorial/source/bayesian_regression.ipynb @@ -69,7 +69,7 @@ "\n", "# for CI testing\n", "smoke_test = ('CI' in os.environ)\n", - "assert pyro.__version__.startswith('1.7.0')\n", + "assert pyro.__version__.startswith('1.8.0')\n", "pyro.set_rng_seed(1)\n", "\n", "\n", diff --git a/tutorial/source/bayesian_regression_ii.ipynb b/tutorial/source/bayesian_regression_ii.ipynb index af0e79866e..fcb888e636 100644 --- a/tutorial/source/bayesian_regression_ii.ipynb +++ b/tutorial/source/bayesian_regression_ii.ipynb @@ -44,7 +44,7 @@ "import pyro.optim as optim\n", "\n", "pyro.set_rng_seed(1)\n", - "assert pyro.__version__.startswith('1.7.0')" + "assert pyro.__version__.startswith('1.8.0')" ] }, { diff --git a/tutorial/source/bo.ipynb b/tutorial/source/bo.ipynb index e362219f97..f60f3d2b40 100644 --- a/tutorial/source/bo.ipynb +++ b/tutorial/source/bo.ipynb @@ -54,7 +54,7 @@ "import pyro\n", "import pyro.contrib.gp as gp\n", "\n", - "assert pyro.__version__.startswith('1.7.0')\n", + "assert pyro.__version__.startswith('1.8.0')\n", "pyro.set_rng_seed(1)" ] }, diff --git a/tutorial/source/dirichlet_process_mixture.ipynb b/tutorial/source/dirichlet_process_mixture.ipynb index ea85af8cbd..7ca10304b3 100644 --- a/tutorial/source/dirichlet_process_mixture.ipynb +++ b/tutorial/source/dirichlet_process_mixture.ipynb @@ -76,7 +76,7 @@ "from pyro.infer import Predictive, SVI, Trace_ELBO\n", "from pyro.optim import Adam\n", "\n", - "assert pyro.__version__.startswith('1.7.0')\n", + "assert pyro.__version__.startswith('1.8.0')\n", "pyro.set_rng_seed(0)" ] }, diff --git a/tutorial/source/easyguide.ipynb b/tutorial/source/easyguide.ipynb index 2a2f766775..28dbb55c04 100644 --- a/tutorial/source/easyguide.ipynb +++ b/tutorial/source/easyguide.ipynb @@ -44,7 +44,7 @@ "from torch.distributions import constraints\n", "\n", "smoke_test = ('CI' in os.environ)\n", - "assert pyro.__version__.startswith('1.7.0')" + "assert pyro.__version__.startswith('1.8.0')" ] }, { diff --git a/tutorial/source/ekf.ipynb b/tutorial/source/ekf.ipynb index fae12e7335..3820229d6f 100644 --- a/tutorial/source/ekf.ipynb +++ b/tutorial/source/ekf.ipynb @@ -98,7 +98,7 @@ "from pyro.contrib.tracking.measurements import PositionMeasurement\n", "\n", "smoke_test = ('CI' in os.environ)\n", - "assert pyro.__version__.startswith('1.7.0')" + "assert pyro.__version__.startswith('1.8.0')" ] }, { diff --git a/tutorial/source/enumeration.ipynb b/tutorial/source/enumeration.ipynb index d5f6f70ab5..bd53501f87 100644 --- a/tutorial/source/enumeration.ipynb +++ b/tutorial/source/enumeration.ipynb @@ -50,7 +50,7 @@ "from pyro.ops.indexing import Vindex\n", "\n", "smoke_test = ('CI' in os.environ)\n", - "assert pyro.__version__.startswith('1.7.0')\n", + "assert pyro.__version__.startswith('1.8.0')\n", "pyro.set_rng_seed(0)" ] }, diff --git a/tutorial/source/epi_intro.ipynb b/tutorial/source/epi_intro.ipynb index 44513823c6..950859bdf1 100644 --- a/tutorial/source/epi_intro.ipynb +++ b/tutorial/source/epi_intro.ipynb @@ -58,7 +58,7 @@ "from pyro.contrib.epidemiology import CompartmentalModel, binomial_dist, infection_dist\n", "\n", "%matplotlib inline\n", - "assert pyro.__version__.startswith('1.7.0')\n", + "assert pyro.__version__.startswith('1.8.0')\n", "torch.set_default_dtype(torch.double) # Required for MCMC inference.\n", "smoke_test = ('CI' in os.environ)" ] diff --git a/tutorial/source/forecasting_dlm.ipynb b/tutorial/source/forecasting_dlm.ipynb index cb472e5456..cb7c81a19e 100644 --- a/tutorial/source/forecasting_dlm.ipynb +++ b/tutorial/source/forecasting_dlm.ipynb @@ -46,7 +46,7 @@ "from pyro.ops.stats import quantile\n", "\n", "%matplotlib inline\n", - "assert pyro.__version__.startswith('1.7.0')\n", + "assert pyro.__version__.startswith('1.8.0')\n", "\n", "pyro.set_rng_seed(20200928)\n", "\n", diff --git a/tutorial/source/forecasting_i.ipynb b/tutorial/source/forecasting_i.ipynb index 597102252a..ff2ae7cb41 100644 --- a/tutorial/source/forecasting_i.ipynb +++ b/tutorial/source/forecasting_i.ipynb @@ -47,7 +47,7 @@ "import matplotlib.pyplot as plt\n", "\n", "%matplotlib inline\n", - "assert pyro.__version__.startswith('1.7.0')\n", + "assert pyro.__version__.startswith('1.8.0')\n", "pyro.set_rng_seed(20200221)" ] }, diff --git a/tutorial/source/forecasting_ii.ipynb b/tutorial/source/forecasting_ii.ipynb index 56b3cd9504..2670a8466c 100644 --- a/tutorial/source/forecasting_ii.ipynb +++ b/tutorial/source/forecasting_ii.ipynb @@ -40,7 +40,7 @@ "import matplotlib.pyplot as plt\n", "\n", "%matplotlib inline\n", - "assert pyro.__version__.startswith('1.7.0')\n", + "assert pyro.__version__.startswith('1.8.0')\n", "pyro.set_rng_seed(20200305)" ] }, diff --git a/tutorial/source/forecasting_iii.ipynb b/tutorial/source/forecasting_iii.ipynb index 55fcae81f0..bb306840a2 100644 --- a/tutorial/source/forecasting_iii.ipynb +++ b/tutorial/source/forecasting_iii.ipynb @@ -40,7 +40,7 @@ "import matplotlib.pyplot as plt\n", "\n", "%matplotlib inline\n", - "assert pyro.__version__.startswith('1.7.0')\n", + "assert pyro.__version__.startswith('1.8.0')\n", "pyro.set_rng_seed(20200305)" ] }, diff --git a/tutorial/source/gmm.ipynb b/tutorial/source/gmm.ipynb index b403e5b08a..50bb745ab8 100644 --- a/tutorial/source/gmm.ipynb +++ b/tutorial/source/gmm.ipynb @@ -41,7 +41,7 @@ "from pyro.infer import SVI, TraceEnum_ELBO, config_enumerate, infer_discrete\n", "\n", "smoke_test = ('CI' in os.environ)\n", - "assert pyro.__version__.startswith('1.7.0')" + "assert pyro.__version__.startswith('1.8.0')" ] }, { diff --git a/tutorial/source/gp.ipynb b/tutorial/source/gp.ipynb index 1d0587b1e6..87cfb6094b 100644 --- a/tutorial/source/gp.ipynb +++ b/tutorial/source/gp.ipynb @@ -60,7 +60,7 @@ "import pyro.distributions as dist\n", "\n", "smoke_test = ('CI' in os.environ) # ignore; used to check code integrity in the Pyro repo\n", - "assert pyro.__version__.startswith('1.7.0')\n", + "assert pyro.__version__.startswith('1.8.0')\n", "pyro.set_rng_seed(0)" ] }, diff --git a/tutorial/source/gplvm.ipynb b/tutorial/source/gplvm.ipynb index 4e774bc4c8..2767ade83c 100644 --- a/tutorial/source/gplvm.ipynb +++ b/tutorial/source/gplvm.ipynb @@ -39,7 +39,7 @@ "import pyro.ops.stats as stats\n", "\n", "smoke_test = ('CI' in os.environ) # ignore; used to check code integrity in the Pyro repo\n", - "assert pyro.__version__.startswith('1.7.0')\n", + "assert pyro.__version__.startswith('1.8.0')\n", "pyro.set_rng_seed(1)" ] }, diff --git a/tutorial/source/intro_long.ipynb b/tutorial/source/intro_long.ipynb index 38fa1171c0..7c785b9b40 100644 --- a/tutorial/source/intro_long.ipynb +++ b/tutorial/source/intro_long.ipynb @@ -109,7 +109,7 @@ "outputs": [], "source": [ "smoke_test = ('CI' in os.environ)\n", - "assert pyro.__version__.startswith('1.7.0')\n", + "assert pyro.__version__.startswith('1.8.0')\n", "\n", "pyro.enable_validation(True)\n", "pyro.set_rng_seed(1)\n", diff --git a/tutorial/source/jit.ipynb b/tutorial/source/jit.ipynb index 230499b8a3..c405870e9c 100644 --- a/tutorial/source/jit.ipynb +++ b/tutorial/source/jit.ipynb @@ -48,7 +48,7 @@ "from pyro.optim import Adam\n", "\n", "smoke_test = ('CI' in os.environ)\n", - "assert pyro.__version__.startswith('1.7.0')" + "assert pyro.__version__.startswith('1.8.0')" ] }, { diff --git a/tutorial/source/model_rendering.ipynb b/tutorial/source/model_rendering.ipynb index 2ab430f3b3..c9ab5ff874 100644 --- a/tutorial/source/model_rendering.ipynb +++ b/tutorial/source/model_rendering.ipynb @@ -22,7 +22,7 @@ "import pyro.distributions as dist\n", "\n", "smoke_test = ('CI' in os.environ)\n", - "assert pyro.__version__.startswith(\"1.7.0\")" + "assert pyro.__version__.startswith('1.8.0')" ] }, { diff --git a/tutorial/source/modules.ipynb b/tutorial/source/modules.ipynb index fc357dc583..f12fb2d5c2 100644 --- a/tutorial/source/modules.ipynb +++ b/tutorial/source/modules.ipynb @@ -61,7 +61,7 @@ "from pyro.optim import Adam\n", "\n", "smoke_test = ('CI' in os.environ)\n", - "assert pyro.__version__.startswith('1.7.0')" + "assert pyro.__version__.startswith('1.8.0')" ] }, { diff --git a/tutorial/source/prodlda.ipynb b/tutorial/source/prodlda.ipynb index 95691f512a..cd64ecbdef 100644 --- a/tutorial/source/prodlda.ipynb +++ b/tutorial/source/prodlda.ipynb @@ -70,7 +70,7 @@ "from pyro.infer import MCMC, NUTS\n", "import torch\n", "\n", - "assert pyro.__version__.startswith('1.7.0')\n", + "assert pyro.__version__.startswith('1.8.0')\n", "# Enable smoke test - run the notebook cells on CI.\n", "smoke_test = 'CI' in os.environ" ] diff --git a/tutorial/source/stable.ipynb b/tutorial/source/stable.ipynb index a357df84d8..063ca76723 100644 --- a/tutorial/source/stable.ipynb +++ b/tutorial/source/stable.ipynb @@ -62,7 +62,7 @@ "from pyro.ops.tensor_utils import convolve\n", "\n", "%matplotlib inline\n", - "assert pyro.__version__.startswith('1.7.0')\n", + "assert pyro.__version__.startswith('1.8.0')\n", "smoke_test = ('CI' in os.environ)" ] }, diff --git a/tutorial/source/svi_part_i.ipynb b/tutorial/source/svi_part_i.ipynb index e45e897f57..100e05b1c5 100644 --- a/tutorial/source/svi_part_i.ipynb +++ b/tutorial/source/svi_part_i.ipynb @@ -260,7 +260,7 @@ "smoke_test = ('CI' in os.environ)\n", "n_steps = 2 if smoke_test else 2000\n", "\n", - "assert pyro.__version__.startswith('1.7.0')\n", + "assert pyro.__version__.startswith('1.8.0')\n", "\n", "# clear the param store in case we're in a REPL\n", "pyro.clear_param_store()\n", diff --git a/tutorial/source/svi_part_iii.ipynb b/tutorial/source/svi_part_iii.ipynb index 62e51624f3..cfd4e5c3e1 100644 --- a/tutorial/source/svi_part_iii.ipynb +++ b/tutorial/source/svi_part_iii.ipynb @@ -283,7 +283,7 @@ "from pyro.infer import SVI, TraceGraph_ELBO\n", "import sys\n", "\n", - "assert pyro.__version__.startswith('1.7.0')\n", + "assert pyro.__version__.startswith('1.8.0')\n", "\n", "# this is for running the notebook in our testing framework\n", "smoke_test = ('CI' in os.environ)\n", diff --git a/tutorial/source/tensor_shapes.ipynb b/tutorial/source/tensor_shapes.ipynb index 9d2a195908..9d421371bb 100644 --- a/tutorial/source/tensor_shapes.ipynb +++ b/tutorial/source/tensor_shapes.ipynb @@ -59,7 +59,7 @@ "from pyro.optim import Adam\n", "\n", "smoke_test = ('CI' in os.environ)\n", - "assert pyro.__version__.startswith('1.7.0')\n", + "assert pyro.__version__.startswith('1.8.0')\n", "\n", "# We'll ue this helper to check our models are correct.\n", "def test_model(model, guide, loss):\n", diff --git a/tutorial/source/tracking_1d.ipynb b/tutorial/source/tracking_1d.ipynb index a3d5da2193..6b298e58ac 100644 --- a/tutorial/source/tracking_1d.ipynb +++ b/tutorial/source/tracking_1d.ipynb @@ -30,7 +30,7 @@ "from pyro.optim import Adam\n", "\n", "%matplotlib inline\n", - "assert pyro.__version__.startswith('1.7.0')\n", + "assert pyro.__version__.startswith('1.8.0')\n", "smoke_test = ('CI' in os.environ)" ] }, diff --git a/tutorial/source/vae.ipynb b/tutorial/source/vae.ipynb index ff2fc99451..cf1ea350d3 100644 --- a/tutorial/source/vae.ipynb +++ b/tutorial/source/vae.ipynb @@ -115,7 +115,7 @@ "metadata": {}, "outputs": [], "source": [ - "assert pyro.__version__.startswith('1.7.0')\n", + "assert pyro.__version__.startswith('1.8.0')\n", "pyro.distributions.enable_validation(False)\n", "pyro.set_rng_seed(0)\n", "# Enable smoke test - run the notebook cells on CI.\n",