-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5114f98
commit 4ffbd68
Showing
11 changed files
with
175 additions
and
15 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from torch import nn | ||
from ezkl import export | ||
|
||
|
||
class Model(nn.Module): | ||
def __init__(self): | ||
super(Model, self).__init__() | ||
self.layer = nn.Conv2d(3, 1, (1, 1), 2, 1) | ||
|
||
def forward(self, x): | ||
return self.layer(x) | ||
|
||
|
||
circuit = Model() | ||
export(circuit, input_shape=[3, 6, 6]) |
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": [[3, 6, 6]], "input_data": [[0.0013342977035790682, 0.09996837377548218, 0.04596591740846634, 0.028909338638186455, 0.0023150264751166105, 0.031060589477419853, 0.04478610306978226, 0.06076720356941223, 0.045172106474637985, 0.05557824298739433, 0.07805796712636948, 0.008817249909043312, 0.06720414012670517, 0.08955056220293045, 0.09216128289699554, 0.045477788895368576, 0.01003159862011671, 0.058520179241895676, 0.0695599615573883, 0.042656876146793365, 0.08834701031446457, 0.04972696304321289, 0.008722865954041481, 0.08152175694704056, 0.021779973059892654, 0.020261067897081375, 0.08429203927516937, 0.033855486661195755, 0.0801347866654396, 0.04853340983390808, 0.07470901310443878, 0.09944545477628708, 0.012083947658538818, 0.05083233118057251, 0.016968900337815285, 0.09431719779968262, 0.026137595996260643, 0.032507576048374176, 0.06173516437411308, 0.020426113158464432, 0.06253501772880554, 0.026606155559420586, 0.0072502256371080875, 0.06107022985816002, 0.07124727219343185, 0.06443677097558975, 0.009884399361908436, 0.05601707100868225, 0.04880037531256676, 0.04238104820251465, 0.011621475219726562, 0.050199996680021286, 0.07783322036266327, 0.008418447338044643, 0.06102946028113365, 0.07127648591995239, 0.05345148593187332, 0.05489174649119377, 0.048850901424884796, 0.06494833528995514, 0.0527624785900116, 0.03499723598361015, 0.04975031688809395, 0.08880099654197693, 0.09861764311790466, 0.08910749852657318, 0.09743963927030563, 0.05271735414862633, 0.08343677967786789, 0.02000223472714424, 0.08513142168521881, 0.034427475184202194, 0.0873868465423584, 0.010047852993011475, 0.026587819680571556, 0.08355271071195602, 0.027053965255618095, 0.03804783895611763, 0.04176938161253929, 0.04468965157866478, 0.05959935113787651, 0.08032093197107315, 0.03739238530397415, 0.027487248182296753, 0.06620214879512787, 0.0759638100862503, 0.053834449499845505, 0.09121784567832947, 0.04995650798082352, 0.015401131473481655, 0.019204294309020042, 0.0033545016776770353, 0.05057207867503166, 0.008860093541443348, 0.0005154967657290399, 0.003039717674255371, 0.021668827161192894, 0.009054434485733509, 0.04053889587521553, 0.054946959018707275, 0.017397576943039894, 0.024417413398623466, 0.06150643154978752, 0.06648053973913193, 0.024091368541121483, 0.014438122510910034, 0.05136483907699585, 0.015915799885988235]], "output_data": [[0.26444995403289795, 0.26444995403289795, 0.26444995403289795, 0.26444995403289795, 0.26444995403289795, 0.26322141289711, 0.2664680778980255, 0.2690267860889435, 0.26444995403289795, 0.2638533413410187, 0.26202982664108276, 0.25793612003326416, 0.26444995403289795, 0.2585963308811188, 0.2597063481807709, 0.25475919246673584]]} |
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,26 @@ | ||
pytorch1.13.1:� | ||
� | ||
input | ||
layer.weight | ||
|
||
layer.biasoutput/layer/Conv"Conv* | ||
dilations@@�* | ||
group�* | ||
kernel_shape@@�* | ||
pads@@@@�* | ||
strides@@� torch_jit*&Blayer.weightJ�N��:�=�݂=*B | ||
layer.biasJ�e�>Z) | ||
input | ||
batch_size | ||
b* | ||
output | ||
batch_size | ||
B |
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
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