aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMarco Capitani <m.capitani@nextworks.it>2017-04-21 16:06:22 +0200
committerMarco Capitani <m.capitani@nextworks.it>2017-04-21 16:06:22 +0200
commit2da2f7f095dd985e6beb57be4b239f3b0eb87973 (patch)
tree49f1f8f0f5568dc17b28aac6d0f9299aba81139c /examples
parent26e3e22cd6ca6676b7b99624764f8e6f1ae1479d (diff)
parent92e114b4bd567593b43d6a065be52ca265bd13a4 (diff)
downloadrumba-2da2f7f095dd985e6beb57be4b239f3b0eb87973.tar.gz
rumba-2da2f7f095dd985e6beb57be4b239f3b0eb87973.zip
Merge branch 'master' into logging (split merged)
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/example.py6
-rwxr-xr-xexamples/two-layers.py6
2 files changed, 10 insertions, 2 deletions
diff --git a/examples/example.py b/examples/example.py
index 54ecd37..8d91102 100755
--- a/examples/example.py
+++ b/examples/example.py
@@ -40,4 +40,8 @@ exp = rl.Experiment(tb, nodes = [a, b])
print(exp)
-exp.run()
+try:
+ exp.swap_in()
+ exp.bootstrap_prototype()
+finally:
+ exp.swap_out()
diff --git a/examples/two-layers.py b/examples/two-layers.py
index 9032588..fff3866 100755
--- a/examples/two-layers.py
+++ b/examples/two-layers.py
@@ -52,4 +52,8 @@ exp = rl.Experiment(tb, nodes = [a, b, c, d])
print(exp)
-exp.run()
+try:
+ exp.swap_in()
+ exp.bootstrap_prototype()
+finally:
+ exp.swap_out()