diff options
author | Sander Vrijders <[email protected]> | 2017-04-20 17:12:34 +0200 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2017-04-21 11:28:35 +0200 |
commit | 009c8ff7570105a79278559202fdd46616b83a92 (patch) | |
tree | 06fc2bafc26683c82795db750187ff7cefdcc43e /examples/two-layers.py | |
parent | 06b3694633bd8315d55b5d75a2ca6c20afc54651 (diff) | |
download | rumba-009c8ff7570105a79278559202fdd46616b83a92.tar.gz rumba-009c8ff7570105a79278559202fdd46616b83a92.zip |
model: Split experiment run()
This splits experiment.run() into 4 different operations: swap_in,
install_prototype, bootstrap_prototype and swap_out.
Diffstat (limited to 'examples/two-layers.py')
-rwxr-xr-x | examples/two-layers.py | 6 |
1 files changed, 5 insertions, 1 deletions
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() |