aboutsummaryrefslogtreecommitdiff
path: root/example.py
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2024-06-08 22:29:11 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2024-06-08 22:29:11 +0530
commit40240b0b383abc2d3e81e2bcfe5e4b6d6fdfec2a (patch)
tree61c4b88b000bdc4566a76c090879ea6066343c9b /example.py
parentfde98a1ee5e1ee4f5cc4e93654c4d3c2e5148576 (diff)
Fix
Diffstat (limited to 'example.py')
-rwxr-xr-xexample.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/example.py b/example.py
index aa6f787..66df486 100755
--- a/example.py
+++ b/example.py
@@ -48,7 +48,6 @@ x1w1x2w2 = x1w1 + x2w2; x1w1x2w2.label = 'x1w1 + x2w2'
L = x1w1x2w2 + b; L.label = 'L'
o = L.tanh(); o.label = 'o'
-print(o)
o.zero_grad()
o.backward()
@@ -59,9 +58,7 @@ e = 2 * L
f = e.exp()
a = f - 1
b = f + 1
-print(a, b)
o = a / b
-print(o)
o.zero_grad()
o.backward()