forked from zkonduit/ezkl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow for single channel conv kernels (zkonduit#201)
- Loading branch information
1 parent
b5e05d3
commit 2e1e756
Showing
35 changed files
with
1,618 additions
and
850 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1 @@ | ||
{ | ||
"input_data": [ | ||
[ | ||
0.05301234 | ||
] | ||
], | ||
"input_shapes": [ | ||
[ | ||
1 | ||
] | ||
], | ||
"output_data": [ | ||
[ | ||
0.0048828125 | ||
] | ||
] | ||
} | ||
{"input_data":[[0.05301234]],"input_shapes":[[1]],"output_data":[[0.005554199]]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from torch import nn | ||
from ezkl import export | ||
|
||
|
||
class Circuit(nn.Module): | ||
def __init__(self, inplace=False): | ||
super(Circuit, self).__init__() | ||
|
||
def forward(self, x): | ||
return x/(2*x) | ||
|
||
|
||
circuit = Circuit() | ||
export(circuit, input_shape=[1]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"input_shapes": [[1]], "input_data": [[0.009540927596390247]], "output_data": [[0.5]]} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"input_data":[[0.61017877,0.21496391,0.8960367]],"input_shapes":[[3]],"output_data":[[0.44274902,0.12817383,0.72998047]]} | ||
{"input_data":[[0.61017877,0.21496391,0.8960367]],"input_shapes":[[3]],"output_data":[[0.44274902,0.12817383,0.73349]]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"input_data":[[0.012968451,0.07738311,0.026791424,0.030387182,0.0008226812,0.0008844912,0.050431013,0.0018652737,0.022439813,0.058267362,0.032021005,0.015621644]],"input_shapes":[[3,2,2]],"output_data":[[-0.70703125,0.0,-0.61865234,-0.53027344,-0.88378906,-0.88378906,-0.35351562,-0.88378906,-0.61865234,-0.26513672,-0.53027344,-0.70703125]]} | ||
{"input_data":[[0.0008132875,0.061658032,0.06964847,0.0367831]],"input_shapes":[[1,2,2]],"output_data":[[-1.5609741,0.7095337,0.99334717,-0.14190674]]} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"input_data":[[0.049622517,0.09307936,0.07327823,0.03837678,0.04325245,0.06161573,0.07465642,0.00059551,0.058175515]],"input_shapes":[[3,3]],"output_data":[[0.0]]} | ||
{"input_data":[[0.05369061,0.053044915,0.04497401,0.05943901,0.09750504,0.056985468,0.08049235,0.064583704,0.07241523]],"input_shapes":[[3,3]],"output_data":[[0.00018494483]]} |
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"input_data":[[0.01252346,0.044559505,0.03341365,0.09370565,0.045316238,0.08961995,0.017141312,0.026875867,0.0531207,0.021451747,0.06615644,0.047222037],[0.08351613,0.022880394,0.017713035,0.0059509515,0.017137295,0.081684746,0.0034027814,0.09778482,0.06083488,0.029793901,0.06421044,0.0028769136],[0.018726094,0.02259075,0.033056613,0.06125168,0.08233156,0.08846317,0.04373407,0.07020334,0.022839189,0.0063982666,0.084016055,0.0008106947]],"input_shapes":[[3,2,2],[3,2,2],[3,2,2]],"output_data":[[2.515625,2.515625,2.515625,2.515625,2.515625,2.515625,2.515625,2.5234375,2.5234375,2.515625,2.515625,2.515625,2.5234375,2.53125,2.515625,2.515625,2.515625,2.515625,2.5234375,2.515625,2.515625,2.515625,2.515625,2.515625,2.515625,2.5546875,2.5546875,2.5546875,2.5546875,2.5546875,2.5546875,2.5625,2.5546875,2.5546875,2.5546875,2.5546875,2.5546875,2.5625,2.5546875,2.5546875,2.5546875,2.546875,2.5546875,2.5546875,2.5546875,2.5546875,2.5546875,2.5546875,2.5546875,2.5546875,2.4453125,2.4453125,2.4453125,2.4453125,2.4453125,2.4453125,2.4375,2.4375,2.4453125,2.4453125,2.4453125,2.4453125,2.4375,2.4375,2.4453125,2.4453125,2.4453125,2.4453125,2.4453125,2.4453125,2.4453125,2.4453125,2.4453125,2.4453125,2.4453125],[0.0078125,0.0078125,0.0078125,0.0234375,0.03125,0.03125,0.015625,0.0234375,0.0078125,0.0,0.03125,0.0]]} | ||
{"input_data":[[0.01252346,0.044559505,0.03341365,0.09370565,0.045316238,0.08961995,0.017141312,0.026875867,0.0531207,0.021451747,0.06615644,0.047222037],[0.08351613,0.022880394,0.017713035,0.0059509515,0.017137295,0.081684746,0.0034027814,0.09778482,0.06083488,0.029793901,0.06421044,0.0028769136],[0.018726094,0.02259075,0.033056613,0.06125168,0.08233156,0.08846317,0.04373407,0.07020334,0.022839189,0.0063982666,0.084016055,0.0008106947]],"input_shapes":[[3,2,2],[3,2,2],[3,2,2]],"output_data":[[2.5,2.5,2.5,2.5,2.5,2.5,2.5,2.5625,2.5,2.5,2.5,2.5,2.5,2.5,2.5,2.5,2.5,2.5,2.5,2.5,2.5,2.5,2.5,2.5,2.5,2.5625,2.5625,2.5625,2.5625,2.5625,2.5625,2.5625,2.5625,2.5625,2.5625,2.5625,2.5625,2.5625,2.5625,2.5625,2.5625,2.5625,2.5625,2.5625,2.5625,2.5625,2.5625,2.5625,2.5625,2.5625,2.4375,2.4375,2.4375,2.4375,2.4375,2.4375,2.4375,2.4375,2.4375,2.4375,2.4375,2.4375,2.4375,2.4375,2.4375,2.4375,2.4375,2.4375,2.4375,2.4375,2.4375,2.4375,2.4375,2.4375,2.4375],[0.0,0.0,0.01953125,0.01953125,0.01953125,0.01953125,0.01953125,0.01953125,0.0,0.0,0.01953125,0.0]]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.