From 747554dd8cab2f477e1c7d6b0d995e80b512234e Mon Sep 17 00:00:00 2001 From: Fritz Obermeyer Date: Fri, 17 Jan 2020 10:22:07 -0800 Subject: [PATCH] Bump version to 1.2.0 (#2267) --- examples/air/main.py | 2 +- examples/baseball.py | 2 +- examples/contrib/autoname/mixture.py | 2 +- examples/contrib/autoname/scoping_mixture.py | 2 +- examples/contrib/autoname/tree_data.py | 2 +- examples/contrib/cevae/synthetic.py | 2 +- examples/contrib/gp/sv-dkl.py | 2 +- examples/contrib/oed/ab_test.py | 2 +- examples/contrib/timeseries/gp_models.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/sparse_regression.py | 2 +- examples/vae/ss_vae_M2.py | 2 +- examples/vae/vae.py | 2 +- examples/vae/vae_comparison.py | 2 +- pyro/__init__.py | 2 +- 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/stable.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 +- 45 files changed, 45 insertions(+), 45 deletions(-) diff --git a/examples/air/main.py b/examples/air/main.py index 46beb94828..b776cd997f 100644 --- a/examples/air/main.py +++ b/examples/air/main.py @@ -248,7 +248,7 @@ def per_param_optim_args(module_name, param_name): if __name__ == '__main__': - assert pyro.__version__.startswith('1.1.0') + assert pyro.__version__.startswith('1.2.0') 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 b3b5dd356d..8b9dd69a6a 100644 --- a/examples/baseball.py +++ b/examples/baseball.py @@ -330,7 +330,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith('1.1.0') + assert pyro.__version__.startswith('1.2.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 0321211edf..28751f25c3 100644 --- a/examples/contrib/autoname/mixture.py +++ b/examples/contrib/autoname/mixture.py @@ -75,7 +75,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('1.1.0') + assert pyro.__version__.startswith('1.2.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 e98dde4956..d7e1455f08 100644 --- a/examples/contrib/autoname/scoping_mixture.py +++ b/examples/contrib/autoname/scoping_mixture.py @@ -67,7 +67,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith('1.1.0') + assert pyro.__version__.startswith('1.2.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 6d177f8850..1eab32f793 100644 --- a/examples/contrib/autoname/tree_data.py +++ b/examples/contrib/autoname/tree_data.py @@ -105,7 +105,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('1.1.0') + assert pyro.__version__.startswith('1.2.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 297f1a06bc..5fc336c1c0 100644 --- a/examples/contrib/cevae/synthetic.py +++ b/examples/contrib/cevae/synthetic.py @@ -81,7 +81,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith('1.1.0') + assert pyro.__version__.startswith('1.2.0') parser = argparse.ArgumentParser(description="Causal Effect Variational Autoencoder") parser.add_argument("--num-data", default=1000, type=int) parser.add_argument("--feature-dim", default=5, type=int) diff --git a/examples/contrib/gp/sv-dkl.py b/examples/contrib/gp/sv-dkl.py index 797a8b8daf..018eb932f3 100644 --- a/examples/contrib/gp/sv-dkl.py +++ b/examples/contrib/gp/sv-dkl.py @@ -165,7 +165,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('1.1.0') + assert pyro.__version__.startswith('1.2.0') 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 bcce54fee5..a004ac6a52 100644 --- a/examples/contrib/oed/ab_test.py +++ b/examples/contrib/oed/ab_test.py @@ -115,7 +115,7 @@ def main(num_vi_steps, num_bo_steps, seed): if __name__ == "__main__": - assert pyro.__version__.startswith('1.1.0') + assert pyro.__version__.startswith('1.2.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 c3d9e9c355..1f1342a294 100644 --- a/examples/contrib/timeseries/gp_models.py +++ b/examples/contrib/timeseries/gp_models.py @@ -149,7 +149,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('1.1.0') + assert pyro.__version__.startswith('1.2.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/dmm/dmm.py b/examples/dmm/dmm.py index c15c753c4c..8ed9ae9022 100644 --- a/examples/dmm/dmm.py +++ b/examples/dmm/dmm.py @@ -450,7 +450,7 @@ def do_evaluation(): # parse command-line arguments and execute the main method if __name__ == '__main__': - assert pyro.__version__.startswith('1.1.0') + assert pyro.__version__.startswith('1.2.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 d36ce0d6cb..dc5f2fd3f8 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('1.1.0') + assert pyro.__version__.startswith('1.2.0') 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 d9131830cc..06d3e80484 100644 --- a/examples/eight_schools/svi.py +++ b/examples/eight_schools/svi.py @@ -75,7 +75,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('1.1.0') + assert pyro.__version__.startswith('1.2.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 0fde4c451c..cfe4dccf2c 100644 --- a/examples/hmm.py +++ b/examples/hmm.py @@ -638,7 +638,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('1.1.0') + assert pyro.__version__.startswith('1.2.0') 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 cf83552398..e076633c03 100644 --- a/examples/inclined_plane.py +++ b/examples/inclined_plane.py @@ -123,7 +123,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('1.1.0') + assert pyro.__version__.startswith('1.2.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 9a6c1ed0fd..87d7cbd39b 100644 --- a/examples/lda.py +++ b/examples/lda.py @@ -138,7 +138,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('1.1.0') + assert pyro.__version__.startswith('1.2.0') 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 c8ad5798e4..a817559e94 100644 --- a/examples/lkj.py +++ b/examples/lkj.py @@ -49,7 +49,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith('1.1.0') + assert pyro.__version__.startswith('1.2.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 2d1e3811b2..6aed0339d4 100644 --- a/examples/minipyro.py +++ b/examples/minipyro.py @@ -65,7 +65,7 @@ def guide(data): if __name__ == "__main__": - assert pyro.__version__.startswith('1.1.0') + assert pyro.__version__.startswith('1.2.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/rsa/generics.py b/examples/rsa/generics.py index 94320dde2d..7731f47747 100644 --- a/examples/rsa/generics.py +++ b/examples/rsa/generics.py @@ -157,7 +157,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith('1.1.0') + assert pyro.__version__.startswith('1.2.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 ad599852a0..b12262fd72 100644 --- a/examples/rsa/hyperbole.py +++ b/examples/rsa/hyperbole.py @@ -154,7 +154,7 @@ def main(args): if __name__ == "__main__": - assert pyro.__version__.startswith('1.1.0') + assert pyro.__version__.startswith('1.2.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 16277a32e9..9f7a20024e 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('1.1.0') + assert pyro.__version__.startswith('1.2.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 9e0b69bd14..722ebc5399 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('1.1.0') + assert pyro.__version__.startswith('1.2.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 2e2e861e1a..3627344058 100644 --- a/examples/rsa/semantic_parsing.py +++ b/examples/rsa/semantic_parsing.py @@ -340,7 +340,7 @@ def is_all_qud(world): if __name__ == "__main__": - assert pyro.__version__.startswith('1.1.0') + assert pyro.__version__.startswith('1.2.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/sparse_gamma_def.py b/examples/sparse_gamma_def.py index 825ed64864..cb7a245fb6 100644 --- a/examples/sparse_gamma_def.py +++ b/examples/sparse_gamma_def.py @@ -234,7 +234,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('1.1.0') + assert pyro.__version__.startswith('1.2.0') # 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/sparse_regression.py b/examples/sparse_regression.py index 1636a9a794..9db00b3d52 100644 --- a/examples/sparse_regression.py +++ b/examples/sparse_regression.py @@ -312,7 +312,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('1.1.0') + assert pyro.__version__.startswith('1.2.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/vae/ss_vae_M2.py b/examples/vae/ss_vae_M2.py index d0d5cc6d52..ae3944c3d5 100644 --- a/examples/vae/ss_vae_M2.py +++ b/examples/vae/ss_vae_M2.py @@ -383,7 +383,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('1.1.0') + assert pyro.__version__.startswith('1.2.0') parser = argparse.ArgumentParser(description="SS-VAE\n{}".format(EXAMPLE_RUN)) diff --git a/examples/vae/vae.py b/examples/vae/vae.py index baa421b81b..af5692704e 100644 --- a/examples/vae/vae.py +++ b/examples/vae/vae.py @@ -201,7 +201,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('1.1.0') + assert pyro.__version__.startswith('1.2.0') # 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 1d1d7e8434..610ce10af2 100644 --- a/examples/vae/vae_comparison.py +++ b/examples/vae/vae_comparison.py @@ -246,7 +246,7 @@ def main(args): if __name__ == '__main__': - assert pyro.__version__.startswith('1.1.0') + assert pyro.__version__.startswith('1.2.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 38eac8a95a..526a85182b 100644 --- a/pyro/__init__.py +++ b/pyro/__init__.py @@ -9,7 +9,7 @@ param, plate, plate_stack, random_module, sample, validation_enabled) from pyro.util import set_rng_seed -version_prefix = '1.1.0' +version_prefix = '1.2.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 4633c51c69..1094fa54aa 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.1.0')\n", + "assert pyro.__version__.startswith('1.2.0')\n", "pyro.enable_validation(True)" ] }, diff --git a/tutorial/source/bayesian_regression.ipynb b/tutorial/source/bayesian_regression.ipynb index cdd03fa744..55c5658364 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.1.0')\n", + "assert pyro.__version__.startswith('1.2.0')\n", "pyro.enable_validation(True)\n", "pyro.set_rng_seed(1)\n", "pyro.enable_validation(True)\n", diff --git a/tutorial/source/bayesian_regression_ii.ipynb b/tutorial/source/bayesian_regression_ii.ipynb index 4560154a81..56481b9f6e 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.1.0')" + "assert pyro.__version__.startswith('1.2.0')" ] }, { diff --git a/tutorial/source/bo.ipynb b/tutorial/source/bo.ipynb index b05cd40254..e3eb7660d1 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.1.0')\n", + "assert pyro.__version__.startswith('1.2.0')\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 1ca63b58fa..98b40644ac 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('1.1.0')" + "assert pyro.__version__.startswith('1.2.0')" ] }, { diff --git a/tutorial/source/ekf.ipynb b/tutorial/source/ekf.ipynb index 6a73303efc..859cab1471 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.1.0')\n", + "assert pyro.__version__.startswith('1.2.0')\n", "pyro.enable_validation(True)" ] }, diff --git a/tutorial/source/enumeration.ipynb b/tutorial/source/enumeration.ipynb index ae42af690a..9af4cb25b3 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.1.0')\n", + "assert pyro.__version__.startswith('1.2.0')\n", "pyro.enable_validation()\n", "pyro.set_rng_seed(0)" ] diff --git a/tutorial/source/gmm.ipynb b/tutorial/source/gmm.ipynb index 9aa0145274..ebe53a4b18 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.1.0')\n", + "assert pyro.__version__.startswith('1.2.0')\n", "pyro.enable_validation(True)" ] }, diff --git a/tutorial/source/gp.ipynb b/tutorial/source/gp.ipynb index 2ad1374e9b..85f2c37d69 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.1.0')\n", + "assert pyro.__version__.startswith('1.2.0')\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 4a4f34736c..f73a852709 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.1.0')\n", + "assert pyro.__version__.startswith('1.2.0')\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 42fecd3a1a..5f6f0cf4ef 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.1.0')\n", + "assert pyro.__version__.startswith('1.2.0')\n", "pyro.enable_validation(True) # <---- This is always a good idea!" ] }, diff --git a/tutorial/source/stable.ipynb b/tutorial/source/stable.ipynb index 923e1f2b6a..a028dccfeb 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.1.0')\n", + "assert pyro.__version__.startswith('1.2.0')\n", "pyro.enable_validation(True)\n", "smoke_test = ('CI' in os.environ)" ] diff --git a/tutorial/source/svi_part_i.ipynb b/tutorial/source/svi_part_i.ipynb index ac9489738f..cb2330d491 100644 --- a/tutorial/source/svi_part_i.ipynb +++ b/tutorial/source/svi_part_i.ipynb @@ -265,7 +265,7 @@ "n_steps = 2 if smoke_test else 2000\n", "\n", "# enable validation (e.g. validate parameters of distributions)\n", - "assert pyro.__version__.startswith('1.1.0')\n", + "assert pyro.__version__.startswith('1.2.0')\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 b0de1a8f15..120948b9ca 100644 --- a/tutorial/source/svi_part_iii.ipynb +++ b/tutorial/source/svi_part_iii.ipynb @@ -284,7 +284,7 @@ "import sys\n", "\n", "# enable validation (e.g. validate parameters of distributions)\n", - "assert pyro.__version__.startswith('1.1.0')\n", + "assert pyro.__version__.startswith('1.2.0')\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 5bc4fe21ef..ca30eedfda 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('1.1.0')\n", + "assert pyro.__version__.startswith('1.2.0')\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 f7c54bbb4c..cc101c6821 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.1.0')\n", + "assert pyro.__version__.startswith('1.2.0')\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 cddae54b36..e6efde9062 100644 --- a/tutorial/source/vae.ipynb +++ b/tutorial/source/vae.ipynb @@ -114,7 +114,7 @@ "metadata": {}, "outputs": [], "source": [ - "assert pyro.__version__.startswith('1.1.0')\n", + "assert pyro.__version__.startswith('1.2.0')\n", "pyro.enable_validation(True)\n", "pyro.distributions.enable_validation(False)\n", "pyro.set_rng_seed(0)\n",