From 199520fb106696bf3d0fd2f56c926901769dc728 Mon Sep 17 00:00:00 2001 From: Neeraj Pradhan Date: Tue, 16 Jul 2019 13:44:34 -0700 Subject: [PATCH] Bump Pyro version to 0.3.4 (#1959) --- examples/air/main.py | 2 +- examples/baseball.py | 2 +- examples/bayesian_regression.py | 2 +- examples/contrib/autoname/mixture.py | 2 +- examples/contrib/autoname/scoping_mixture.py | 2 +- examples/contrib/autoname/tree_data.py | 2 +- examples/contrib/gp/sv-dkl.py | 2 +- examples/contrib/oed/ab_test.py | 2 +- examples/dmm/dmm.py | 2 +- examples/eight_schools/mcmc.py | 2 +- examples/eight_schools/svi.py | 2 +- examples/hmm.py | 2 +- examples/inclined_plane.py | 2 +- examples/lda.py | 2 +- examples/lkj.py | 2 +- examples/minipyro.py | 2 +- examples/rsa/generics.py | 2 +- examples/rsa/hyperbole.py | 2 +- examples/rsa/schelling.py | 2 +- examples/rsa/schelling_false.py | 2 +- examples/rsa/semantic_parsing.py | 2 +- examples/sparse_gamma_def.py | 2 +- examples/vae/ss_vae_M2.py | 2 +- examples/vae/vae.py | 2 +- examples/vae/vae_comparison.py | 2 +- pyro/__init__.py | 2 +- setup.py | 10 ++-------- tutorial/source/air.ipynb | 2 +- tutorial/source/bayesian_regression.ipynb | 2 +- tutorial/source/bayesian_regression_ii.ipynb | 2 +- tutorial/source/bo.ipynb | 2 +- tutorial/source/easyguide.ipynb | 2 +- tutorial/source/ekf.ipynb | 2 +- tutorial/source/enumeration.ipynb | 2 +- tutorial/source/gmm.ipynb | 2 +- tutorial/source/gp.ipynb | 2 +- tutorial/source/gplvm.ipynb | 2 +- tutorial/source/jit.ipynb | 2 +- tutorial/source/svi_part_i.ipynb | 2 +- tutorial/source/svi_part_iii.ipynb | 2 +- tutorial/source/tensor_shapes.ipynb | 2 +- tutorial/source/tracking_1d.ipynb | 2 +- tutorial/source/vae.ipynb | 2 +- 43 files changed, 44 insertions(+), 50 deletions(-) diff --git a/examples/air/main.py b/examples/air/main.py index 69af548b4c..bf7b52e83e 100644 --- a/examples/air/main.py +++ b/examples/air/main.py @@ -245,7 +245,7 @@ def per_param_optim_args(module_name, param_name): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.3') + assert pyro.__version__.startswith('0.3.4') parser = argparse.ArgumentParser(description="Pyro AIR example", argument_default=argparse.SUPPRESS) parser.add_argument('-n', '--num-steps', type=int, default=int(1e8), help='number of optimization steps to take') diff --git a/examples/baseball.py b/examples/baseball.py index 0378543e35..eab6fe8654 100644 --- a/examples/baseball.py +++ b/examples/baseball.py @@ -362,7 +362,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith('0.3.3') + assert pyro.__version__.startswith('0.3.4') 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/bayesian_regression.py b/examples/bayesian_regression.py index 8f69d3655a..a1f4c13df2 100644 --- a/examples/bayesian_regression.py +++ b/examples/bayesian_regression.py @@ -137,7 +137,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.3') + assert pyro.__version__.startswith('0.3.4') parser = argparse.ArgumentParser(description="parse args") parser.add_argument('-n', '--num-epochs', default=1000, type=int) parser.add_argument('-b', '--batch-size', default=N, type=int) diff --git a/examples/contrib/autoname/mixture.py b/examples/contrib/autoname/mixture.py index 05cdc48fbe..39fd74f4c6 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('0.3.3') + assert pyro.__version__.startswith('0.3.4') 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 720239d968..b687e8ed30 100644 --- a/examples/contrib/autoname/scoping_mixture.py +++ b/examples/contrib/autoname/scoping_mixture.py @@ -66,7 +66,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith('0.3.3') + assert pyro.__version__.startswith('0.3.4') 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 b2bf6e6d5e..e797947bc1 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('0.3.3') + assert pyro.__version__.startswith('0.3.4') 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/gp/sv-dkl.py b/examples/contrib/gp/sv-dkl.py index b486331757..7e76ed3626 100644 --- a/examples/contrib/gp/sv-dkl.py +++ b/examples/contrib/gp/sv-dkl.py @@ -164,7 +164,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.3') + assert pyro.__version__.startswith('0.3.4') parser = argparse.ArgumentParser(description='Pyro GP MNIST Example') parser.add_argument('--data-dir', type=str, default=None, metavar='PATH', help='default directory to cache MNIST data') diff --git a/examples/contrib/oed/ab_test.py b/examples/contrib/oed/ab_test.py index 8d1122ce95..dfcca57abb 100644 --- a/examples/contrib/oed/ab_test.py +++ b/examples/contrib/oed/ab_test.py @@ -114,7 +114,7 @@ def main(num_vi_steps, num_bo_steps, seed): if __name__ == "__main__": - assert pyro.__version__.startswith('0.3.3') + assert pyro.__version__.startswith('0.3.4') 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/dmm/dmm.py b/examples/dmm/dmm.py index c2dbf4ee1d..6bc1483b7f 100644 --- a/examples/dmm/dmm.py +++ b/examples/dmm/dmm.py @@ -432,7 +432,7 @@ def do_evaluation(): # parse command-line arguments and execute the main method if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.3') + assert pyro.__version__.startswith('0.3.4') 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 8a8c93508d..08a8537756 100644 --- a/examples/eight_schools/mcmc.py +++ b/examples/eight_schools/mcmc.py @@ -42,7 +42,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.3') + assert pyro.__version__.startswith('0.3.4') parser = argparse.ArgumentParser(description='Eight Schools MCMC') parser.add_argument('--num-samples', type=int, default=1000, help='number of MCMC samples (default: 1000)') diff --git a/examples/eight_schools/svi.py b/examples/eight_schools/svi.py index a7adcd9fec..68daaadb30 100644 --- a/examples/eight_schools/svi.py +++ b/examples/eight_schools/svi.py @@ -74,7 +74,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.3') + assert pyro.__version__.startswith('0.3.4') 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 26a6cb2d67..12492cee24 100644 --- a/examples/hmm.py +++ b/examples/hmm.py @@ -616,7 +616,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.3') + assert pyro.__version__.startswith('0.3.4') parser = argparse.ArgumentParser(description="MAP Baum-Welch learning Bach Chorales") parser.add_argument("-m", "--model", default="1", type=str, help="one of: {}".format(", ".join(sorted(models.keys())))) diff --git a/examples/inclined_plane.py b/examples/inclined_plane.py index c4455aeb06..e92ae6d859 100644 --- a/examples/inclined_plane.py +++ b/examples/inclined_plane.py @@ -121,7 +121,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.3') + assert pyro.__version__.startswith('0.3.4') 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 1786aa5c48..d10e758dcd 100644 --- a/examples/lda.py +++ b/examples/lda.py @@ -137,7 +137,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.3') + assert pyro.__version__.startswith('0.3.4') parser = argparse.ArgumentParser(description="Amortized Latent Dirichlet Allocation") parser.add_argument("-t", "--num-topics", default=8, type=int) parser.add_argument("-w", "--num-words", default=1024, type=int) diff --git a/examples/lkj.py b/examples/lkj.py index 449e76b3ef..849d513ed2 100644 --- a/examples/lkj.py +++ b/examples/lkj.py @@ -48,7 +48,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith('0.3.3') + assert pyro.__version__.startswith('0.3.4') 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 d7f6d302fa..321e6a9c06 100644 --- a/examples/minipyro.py +++ b/examples/minipyro.py @@ -65,7 +65,7 @@ def guide(data): if __name__ == "__main__": - assert pyro.__version__.startswith('0.3.3') + assert pyro.__version__.startswith('0.3.4') 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/rsa/generics.py b/examples/rsa/generics.py index ab39b9f9e1..b0af7706b6 100644 --- a/examples/rsa/generics.py +++ b/examples/rsa/generics.py @@ -154,7 +154,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith('0.3.3') + assert pyro.__version__.startswith('0.3.4') 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 6089304fe6..2b31843f29 100644 --- a/examples/rsa/hyperbole.py +++ b/examples/rsa/hyperbole.py @@ -151,7 +151,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith('0.3.3') + assert pyro.__version__.startswith('0.3.4') 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 e3d0b994f5..8116f18a70 100644 --- a/examples/rsa/schelling.py +++ b/examples/rsa/schelling.py @@ -76,7 +76,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.3') + assert pyro.__version__.startswith('0.3.4') 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 cccbc6c485..dbbb479e3d 100644 --- a/examples/rsa/schelling_false.py +++ b/examples/rsa/schelling_false.py @@ -89,7 +89,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.3') + assert pyro.__version__.startswith('0.3.4') 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 340f5bf132..a2073d335b 100644 --- a/examples/rsa/semantic_parsing.py +++ b/examples/rsa/semantic_parsing.py @@ -337,7 +337,7 @@ def is_all_qud(world): if __name__ == "__main__": - assert pyro.__version__.startswith('0.3.3') + assert pyro.__version__.startswith('0.3.4') parser = argparse.ArgumentParser(description="parse args") parser.add_argument('-n', '--num-samples', default=10, type=int) args = parser.parse_args() diff --git a/examples/sparse_gamma_def.py b/examples/sparse_gamma_def.py index 5ad8403736..ad3b433e06 100644 --- a/examples/sparse_gamma_def.py +++ b/examples/sparse_gamma_def.py @@ -233,7 +233,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.3') + assert pyro.__version__.startswith('0.3.4') # parse command line arguments parser = argparse.ArgumentParser(description="parse args") parser.add_argument('-n', '--num-epochs', default=1500, type=int, help='number of training epochs') diff --git a/examples/vae/ss_vae_M2.py b/examples/vae/ss_vae_M2.py index ae954201ab..6002ca29a3 100644 --- a/examples/vae/ss_vae_M2.py +++ b/examples/vae/ss_vae_M2.py @@ -380,7 +380,7 @@ def main(args): "-sup 3000 -zd 50 -hl 500 -lr 0.00042 -b1 0.95 -bs 200 -log ./tmp.log" if __name__ == "__main__": - assert pyro.__version__.startswith('0.3.3') + assert pyro.__version__.startswith('0.3.4') parser = argparse.ArgumentParser(description="SS-VAE\n{}".format(EXAMPLE_RUN)) diff --git a/examples/vae/vae.py b/examples/vae/vae.py index 4e158316de..e2ff107787 100644 --- a/examples/vae/vae.py +++ b/examples/vae/vae.py @@ -198,7 +198,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.3') + assert pyro.__version__.startswith('0.3.4') # parse command line arguments parser = argparse.ArgumentParser(description="parse args") parser.add_argument('-n', '--num-epochs', default=101, type=int, help='number of training epochs') diff --git a/examples/vae/vae_comparison.py b/examples/vae/vae_comparison.py index 7bd4e8bf3e..52420286b6 100644 --- a/examples/vae/vae_comparison.py +++ b/examples/vae/vae_comparison.py @@ -245,7 +245,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('0.3.3') + assert pyro.__version__.startswith('0.3.4') 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 4fa3b77c32..884027050a 100644 --- a/pyro/__init__.py +++ b/pyro/__init__.py @@ -7,7 +7,7 @@ plate, random_module, sample, validation_enabled) from pyro.util import set_rng_seed -version_prefix = '0.3.3' +version_prefix = '0.3.4' # Get the __version__ string from the auto-generated _version.py file, if exists. try: diff --git a/setup.py b/setup.py index 5933f291df..5a4da7785e 100644 --- a/setup.py +++ b/setup.py @@ -56,8 +56,6 @@ # examples/tutorials EXTRAS_REQUIRE = [ - # TODO: remove once https://github.com/ipython/ipython/issues/11809 is fixed. - 'ipython<7.6.0', 'jupyter>=1.0.0', 'matplotlib>=1.3', 'pillow', @@ -99,9 +97,7 @@ 'nbval', 'pytest>=4.1', 'pytest-cov', - # TODO: remove once https://github.com/pyro-ppl/pyro/issues/1871 - # is fixed. - 'scipy>=1.1, <1.3', + 'scipy>=1.1', ], 'profile': ['prettytable', 'pytest-benchmark', 'snakeviz'], 'dev': EXTRAS_REQUIRE + [ @@ -115,9 +111,7 @@ 'pypandoc', 'pytest>=4.1', 'pytest-xdist', - # TODO: remove once https://github.com/pyro-ppl/pyro/issues/1871 - # is fixed. - 'scipy>=1.1, < 1.3', + 'scipy>=1.1', 'sphinx', 'sphinx_rtd_theme', 'yapf', diff --git a/tutorial/source/air.ipynb b/tutorial/source/air.ipynb index 0d9ee4c73f..aa46c0da84 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('0.3.3')\n", + "assert pyro.__version__.startswith('0.3.4')\n", "pyro.enable_validation(True)" ] }, diff --git a/tutorial/source/bayesian_regression.ipynb b/tutorial/source/bayesian_regression.ipynb index 898769639e..c23111db9a 100644 --- a/tutorial/source/bayesian_regression.ipynb +++ b/tutorial/source/bayesian_regression.ipynb @@ -55,7 +55,7 @@ "\n", "# for CI testing\n", "smoke_test = ('CI' in os.environ)\n", - "assert pyro.__version__.startswith('0.3.3')\n", + "assert pyro.__version__.startswith('0.3.4')\n", "pyro.enable_validation(True)\n", "pyro.set_rng_seed(1)\n", "pyro.enable_validation(True)" diff --git a/tutorial/source/bayesian_regression_ii.ipynb b/tutorial/source/bayesian_regression_ii.ipynb index 943d0a520f..932cbff31e 100644 --- a/tutorial/source/bayesian_regression_ii.ipynb +++ b/tutorial/source/bayesian_regression_ii.ipynb @@ -41,7 +41,7 @@ "import pyro.optim as optim\n", "\n", "pyro.set_rng_seed(1)\n", - "assert pyro.__version__.startswith('0.3.3')" + "assert pyro.__version__.startswith('0.3.4')" ] }, { diff --git a/tutorial/source/bo.ipynb b/tutorial/source/bo.ipynb index 54335457de..2b27352c45 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('0.3.3')\n", + "assert pyro.__version__.startswith('0.3.4')\n", "pyro.enable_validation(True) # can help with debugging\n", "pyro.set_rng_seed(1)" ] diff --git a/tutorial/source/easyguide.ipynb b/tutorial/source/easyguide.ipynb index fd6611173d..375627b0c1 100644 --- a/tutorial/source/easyguide.ipynb +++ b/tutorial/source/easyguide.ipynb @@ -45,7 +45,7 @@ "\n", "pyro.enable_validation(True)\n", "smoke_test = ('CI' in os.environ)\n", - "assert pyro.__version__.startswith('0.3.3')" + "assert pyro.__version__.startswith('0.3.4')" ] }, { diff --git a/tutorial/source/ekf.ipynb b/tutorial/source/ekf.ipynb index d144e89f82..9530a9d59f 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('0.3.3')\n", + "assert pyro.__version__.startswith('0.3.4')\n", "pyro.enable_validation(True)" ] }, diff --git a/tutorial/source/enumeration.ipynb b/tutorial/source/enumeration.ipynb index 62244fc8ae..643972c4ab 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('0.3.3')\n", + "assert pyro.__version__.startswith('0.3.4')\n", "pyro.enable_validation()\n", "pyro.set_rng_seed(0)" ] diff --git a/tutorial/source/gmm.ipynb b/tutorial/source/gmm.ipynb index 80b4094aae..151413b9f9 100644 --- a/tutorial/source/gmm.ipynb +++ b/tutorial/source/gmm.ipynb @@ -42,7 +42,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('0.3.3')\n", + "assert pyro.__version__.startswith('0.3.4')\n", "pyro.enable_validation(True)" ] }, diff --git a/tutorial/source/gp.ipynb b/tutorial/source/gp.ipynb index e6c02f0c37..6578c133e4 100644 --- a/tutorial/source/gp.ipynb +++ b/tutorial/source/gp.ipynb @@ -61,7 +61,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('0.3.3')\n", + "assert pyro.__version__.startswith('0.3.4')\n", "pyro.enable_validation(True) # can help with debugging\n", "pyro.set_rng_seed(0)" ] diff --git a/tutorial/source/gplvm.ipynb b/tutorial/source/gplvm.ipynb index ff2e36e20e..91fac7a1fc 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('0.3.3')\n", + "assert pyro.__version__.startswith('0.3.4')\n", "pyro.enable_validation(True) # can help with debugging\n", "pyro.set_rng_seed(1)" ] diff --git a/tutorial/source/jit.ipynb b/tutorial/source/jit.ipynb index bacb8fbda6..afae0f86e3 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('0.3.3')\n", + "assert pyro.__version__.startswith('0.3.4')\n", "pyro.enable_validation(True) # <---- This is always a good idea!" ] }, diff --git a/tutorial/source/svi_part_i.ipynb b/tutorial/source/svi_part_i.ipynb index 545f642ac1..84e4eebd40 100644 --- a/tutorial/source/svi_part_i.ipynb +++ b/tutorial/source/svi_part_i.ipynb @@ -266,7 +266,7 @@ "n_steps = 2 if smoke_test else 2000\n", "\n", "# enable validation (e.g. validate parameters of distributions)\n", - "assert pyro.__version__.startswith('0.3.3')\n", + "assert pyro.__version__.startswith('0.3.4')\n", "pyro.enable_validation(True)\n", "\n", "# clear the param store in case we're in a REPL\n", diff --git a/tutorial/source/svi_part_iii.ipynb b/tutorial/source/svi_part_iii.ipynb index a3cb50c6ff..cc02214402 100644 --- a/tutorial/source/svi_part_iii.ipynb +++ b/tutorial/source/svi_part_iii.ipynb @@ -285,7 +285,7 @@ "import sys\n", "\n", "# enable validation (e.g. validate parameters of distributions)\n", - "assert pyro.__version__.startswith('0.3.3')\n", + "assert pyro.__version__.startswith('0.3.4')\n", "pyro.enable_validation(True)\n", "\n", "# this is for running the notebook in our testing framework\n", diff --git a/tutorial/source/tensor_shapes.ipynb b/tutorial/source/tensor_shapes.ipynb index 9a4a307941..e6b289a6ba 100644 --- a/tutorial/source/tensor_shapes.ipynb +++ b/tutorial/source/tensor_shapes.ipynb @@ -52,7 +52,7 @@ "from pyro.optim import Adam\n", "\n", "smoke_test = ('CI' in os.environ)\n", - "assert pyro.__version__.startswith('0.3.3')\n", + "assert pyro.__version__.startswith('0.3.4')\n", "pyro.enable_validation(True) # <---- This is always a good idea!\n", "\n", "# We'll ue this helper to check our models are correct.\n", diff --git a/tutorial/source/tracking_1d.ipynb b/tutorial/source/tracking_1d.ipynb index e6c2fcb687..7adfd696c7 100644 --- a/tutorial/source/tracking_1d.ipynb +++ b/tutorial/source/tracking_1d.ipynb @@ -31,7 +31,7 @@ "from pyro.optim import Adam\n", "\n", "%matplotlib inline\n", - "assert pyro.__version__.startswith('0.3.3')\n", + "assert pyro.__version__.startswith('0.3.4')\n", "pyro.enable_validation(True)\n", "smoke_test = ('CI' in os.environ)" ] diff --git a/tutorial/source/vae.ipynb b/tutorial/source/vae.ipynb index b640c04bd1..f979746638 100644 --- a/tutorial/source/vae.ipynb +++ b/tutorial/source/vae.ipynb @@ -114,7 +114,7 @@ "metadata": {}, "outputs": [], "source": [ - "assert pyro.__version__.startswith('0.3.3')\n", + "assert pyro.__version__.startswith('0.3.4')\n", "pyro.enable_validation(True)\n", "pyro.distributions.enable_validation(False)\n", "pyro.set_rng_seed(0)\n",