Mercurial > lbo > hg > autodiff
changeset 10:cec279d69c6b default tip
Reorder debug statements
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Tue, 28 Dec 2021 15:54:36 +0100 |
parents | 84d09d282bdb |
children | |
files | autodiff.py gad.py |
diffstat | 2 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/autodiff.py Mon Dec 27 23:36:35 2021 +0100 +++ b/autodiff.py Tue Dec 28 15:54:36 2021 +0100 @@ -213,6 +213,6 @@ print((after-before)/1e9) before = time.time_ns() -print(complex_calculation2(*list(range(1, 100, 2)))[1].shape) +print(complex_calculation2(*list(range(1, 400, 2)))[1].shape) after = time.time_ns() print((after-before)/1e9)
--- a/gad.py Mon Dec 27 23:36:35 2021 +0100 +++ b/gad.py Tue Dec 28 15:54:36 2021 +0100 @@ -292,14 +292,14 @@ print((after-before)/1e9) before = time.time_ns() -print(complex_calculation2(*list(range(1, 100, 2)))[1].shape) -after = time.time_ns() -print((after-before)/1e9) - -before = time.time_ns() print(complex_calculation(5,6,7)[1].shape) after = time.time_ns() print((after-before)/1e9) # Print expression tree print([str(e) for e in complex_calculation.orig()(x,y,z)]) + +before = time.time_ns() +print(complex_calculation2(*list(range(1, 400, 2)))[1].shape) +after = time.time_ns() +print((after-before)/1e9)