diff --git a/images/sample-1.svg b/images/sample-1.svg index d32b046..1434367 100644 --- a/images/sample-1.svg +++ b/images/sample-1.svg @@ -9,9 +9,9 @@ G - + -leaf140273375911024 +leaf140728778297408     2x1 @@ -22,44 +22,44 @@ a     - + -leaf140273375909152 +leaf140728778297504 = - - + + -leaf140273375909584 +leaf140728778299904 torch - - + + -leaf140273375909680 +leaf140728778300000 . - - + + -leaf140273375909776 +leaf140728778300048 relu - - + + -leaf140273375909872 +leaf140728778300144 ( - - + + -leaf140273375909104 +leaf140728778300192     2x1 @@ -70,13 +70,13 @@ x     - - + + -leaf140273375910016 +leaf140728778300288 ) - + diff --git a/images/sample-2.svg b/images/sample-2.svg index ce3ad02..40d98fa 100644 --- a/images/sample-2.svg +++ b/images/sample-2.svg @@ -4,128 +4,128 @@ - - + + G - - + + -leaf140273375910448 - -     -3x1 -     - - -     -b -     +leaf140728778300816 + +     +2x1 +     + + +     +b +     - + -leaf140273375910544 - -= +leaf140728778299856 + += - - + + -leaf140273375909440 - -     -3x2 -     - - -     -W -     +leaf140728778299376 + +     +2x2 +     + + +     +W +     - - + + -leaf140273375909920 - -@ +leaf140728778300384 + +@ - - + + -leaf140273375910112 - -     -2x1 -     - - -     -b -     +leaf140728778300960 + +     +2x1 +     + + +     +b +     - - + + -leaf140273375910688 - -+ +leaf140728778300912 + ++ - - + + -leaf140273375910736 - -     -2 -     - - -     -h -     +leaf140728778301008 + +     +2 +     + + +     +h +     - - + + -leaf140273375910832 - -. +leaf140728778301104 + +. - - + + -leaf140273375910928 - -dot +leaf140728778301296 + +dot - - + + -leaf140273375911120 - -( +leaf140728778301392 + +( - - + + -leaf140273375911216 - -     -2 -     - - -     -h -     +leaf140728778298512 + +     +2 +     + + +     +h +     - - + + -leaf140273375911312 - -) +leaf140728640009264 + +) - + diff --git a/testing/viz_testing.py b/testing/viz_testing.py index 3e78af9..710073a 100644 --- a/testing/viz_testing.py +++ b/testing/viz_testing.py @@ -15,10 +15,10 @@ def __init__(self): self.a = 3 -W = torch.tensor([[1, 2], [3, 4], [5, 6]]) +W = torch.tensor([[1, 2], [3, 4]]) b = torch.tensor([9, 10]).reshape(2, 1) x = torch.tensor([4, 5]).reshape(2, 1) -h = torch.tensor([1, 2]) +h = torch.tensor([1,2]) a = 3 with tsensor.explain(savefig="/tmp/sample") as e: