mirror of
https://github.com/socathie/circomlib-ml.git
synced 2026-01-10 06:28:08 -05:00
* add circuits and tests for separable convolution. Circuits do not yet comply with repo`s quantization * make depthwise circuit compliant with quantization method from repo * make pointwise circuit compliant with quantization method from repo * separable convolution test works * clean up * fix typos and skip failing test * clean up duplicated code for depthwise conv * clean up duplicated code for pointwise conv * clean up duplicated code for separable conv notebook * chore: update filename to capital case --------- Co-authored-by: drCathieSo.eth <socathie@users.noreply.github.com>
1 line
12 KiB
JSON
1 line
12 KiB
JSON
{"in": [[["-1243852972984314", "-794157326221466", "-597575724124908"], ["170655414462090", "-1086679697036743", "-1697478771209717"], ["509481370449066", "225288406014442", "-64415007829666"], ["590897262096405", "-399510115385056", "1134587287902832"], ["1465134143829346", "1758610010147095", "-1373797774314880"]], [["403927683830261", "-699970347341", "-439315468072891"], ["-1525186419487000", "1998404622077942", "1773462057113648"], ["1877335429191589", "-636244714260101", "-606919586658478"], ["-391645520925522", "-72086162865162", "265408486127853"], ["605727314949036", "-387010335922241", "-1235900878906250"]], [["915952444076538", "-2098059654235840", "358242869377136"], ["616383910179138", "1109669089317322", "387771666049957"], ["-425552368164062", "143142804503441", "-79975701868534"], ["-295331984758377", "-796440958976746", "359315395355225"], ["-2283742666244507", "-249575465917587", "-103367328643799"]], [["-67902050912380", "78334562480450", "2469559431076050"], ["-265754252672195", "425864696502686", "-3510748386383056"], ["79347543418407", "-99015913903713", "972361028194428"], ["943273067474365", "-344860464334488", "-127286925911903"], ["-2072630882263184", "1624857187271118", "888097882270813"]], [["136120304465294", "15930408611894", "113495372235775"], ["352311730384827", "-1488690614700318", "1044727563858032"], ["269414514303207", "-518921256065369", "-983146488666534"], ["874308347702026", "-2917599678039551", "1067365169525146"], ["700133085250854", "998220741748810", "-619944334030151"]]], "weights": [["223640382289886", "-49862846732140", "-525686919689178", "487665116786957", "-373382061719894", "134575083851814"], ["-365500152111053", "-115226984024048", "221430957317352", "158259183168411", "542358636856079", "-224332228302956"], ["61407156288624", "-477979838848114", "507947981357574", "157971695065498", "266694396734238", "-159785449504852"]], "remainder": [[["851475750168902", "618953273689840", "987700965022668", "204002404672792", "258624409150798", "681890876061516"], ["790678609482711", "191026640946802", "914636159926886", "728315649990691", "894110260080197", "979277649290452"], ["691079178599466", "989171378867468", "501601457799552", "933205628360156", "301179889269406", "62803747954604"], ["520968616066966", "857472353411140", "427027217752766", "457707519613905", "907821997825522", "753229476613342"], ["438257842528401", "980277299415320", "61448971973732", "442718238045927", "15709256869741", "390205321018584"]], [["111192270208335", "971174993445402", "692168596097076", "718222634445908", "56861180409669", "734533744150582"], ["105461243365426", "743490645370912", "356793428305536", "539448112947866", "604855767567642", "867483188165352"], ["304613425410935", "448809119348880", "296637042891234", "476061741443118", "685573076654691", "180397030286258"], ["728057102409366", "299590361173614", "407122982418514", "772386768301658", "858692853245884", "824818319579208"], ["536110435379669", "867426354147028", "680682463804260", "221386069431901", "642598263337277", "344812420720700"]], [["71506942535052", "938455390627496", "377336941426620", "711657299718354", "425241928664036", "804976609419100"], ["150962299827370", "412670687714126", "737227889127098", "365371852501994", "511606717656832", "996582805761136"], ["988153748332479", "105885467448388", "270659569752752", "467277339022985", "373297845850175", "746321358346904"], ["391228062158916", "823607625628938", "892152635671664", "979414370667655", "773186264006654", "121455682863598"], ["569273008790333", "824213138432242", "303548055991996", "681779525213642", "813444586470723", "124504115214222"]], [["145593206252670", "896959606961900", "247126495494740", "675679680360190", "28804814843170", "617229098737880"], ["360762234136928", "386211677410756", "486757874547038", "615587241889443", "773005412804196", "3053428736166"], ["266362343958463", "668835720880452", "441596906370250", "545133352752600", "88652186015679", "406993179851270"], ["420750952576782", "231401597877266", "493586356838932", "596190461576043", "931408680495224", "466477009947994"], ["281650370307034", "49121701391414", "976294919149950", "22570586472284", "553741821204312", "421133561874740"]], [["333329147875702", "100175238745578", "174008501406206", "143771861841742", "802673524209240", "802603994504352"], ["759108853002544", "215708929055836", "828350495314226", "194752708426677", "29810282518156", "807442092394922"], ["469422095178743", "503064304837608", "763423020194750", "804100958368508", "209333708480699", "891302567921230"], ["107086761505343", "76096124132164", "61302015092224", "597398435464129", "222018575062975", "564151726779528"], ["720459032163490", "815314525854774", "331069171079434", "3973457321990", "430131641216576", "584061409259448"]]], "out": [[["21888242871839275222246405745257275088548364400416034343698204161969251753420", "439159552007103", "174488838131004", "21888242871839275222246405745257275088548364400416034343698203359909363334395", "21888242871839275222246405745257275088548364400416034343698204060920013877659", "106247370168172"], ["331109692492766", "928066088825292", "21888242871839275222246405745257275088548364400416034343698202994009048493273", "21888242871839275222246405745257275088548364400416034343698203829667861075169", "21888242871839275222246405745257275088548364400416034343698203080777941959122", "537975653081523"], ["27642119336539", "21888242871839275222246405745257275088548364400416034343698204166001388509228", "21888242871839275222246405745257275088548364400416034343698203935914470445293", "273934503159471", "21888242871839275222246405745257275088548364400416034343698204101352595121175", "28316628998001"], ["347841276443764", "21888242871839275222246405745257275088548364400416034343698203660836485533267", "177220453692301", "404166514870756", "21888242871839275222246405745257275088548364400416034343698204051855681208547", "21888242871839275222246405745257275088548364400416034343698204174428311703903"], ["21888242871839275222246405745257275088548364400416034343698203787105727678475", "380952551977385", "21888242871839275222246405745257275088548364400416034343698203107966845332505", "775789833991036", "40358351889875", "22170542865476"]], [["63613267289732", "189923607915297", "21888242871839275222246405745257275088548364400416034343698203750931908314814", "127471255213189", "21888242871839275222246405745257275088548364400416034343698203918213848424190", "124711847369752"], ["21888242871839275222246405745257275088548364400416034343698203223968602942405", "21888242871839275222246405745257275088548364400416034343698203184676699444253", "2145105671311155", "21888242871839275222246405745257275088548364400416034343698204039218285541228", "2126301649985304", "21888242871839275222246405745257275088548364400416034343698203249643724306130"], ["615126347000110", "269798596979620", "21888242871839275222246405745257275088548364400416034343698202750517274444263", "718943316678094", "21888242871839275222246405745257275088548364400416034343698202978677566441189", "492349686264909"], ["21888242871839275222246405745257275088548364400416034343698204141633538354010", "21888242871839275222246405745257275088548364400416034343698204087550734787361", "324734524216646", "21888242871839275222246405745257275088548364400416034343698204026102680979982", "177919815134813", "21888242871839275222246405745257275088548364400416034343698204107632914963887"], ["201024266498513", "605126448459530", "21888242871839275222246405745257275088548364400416034343698203154683456355008", "38906785371126", "21888242871839275222246405745257275088548364400416034343698203420901857236673", "365813672713789"]], [["993683753383022", "24848220953845", "21888242871839275222246405745257275088548364400416034343698203422464974176754", "171233081814554", "21888242871839275222246405745257275088548364400416034343698202802216188307734", "536684776397795"], ["21888242871839275222246405745257275088548364400416034343698203942651876168429", "21888242871839275222246405745257275088548364400416034343698203842630291179027", "118657964662705", "537461202589988", "475108449997636", "21888242871839275222246405745257275088548364400416034343698203958630915442378"], ["21888242871839275222246405745257275088548364400416034343698204034175316951495", "42952111953475", "214780065499111", "21888242871839275222246405745257275088548364400416034343698203989068529304848", "215199285357897", "21888242871839275222246405745257275088548364400416034343698204109974472039338"], ["247115670319166", "21888242871839275222246405745257275088548364400416034343698204121327876875296", "161409007101736", "21888242871839275222246405745257275088548364400416034343698203973270268115367", "21888242871839275222246405745257275088548364400416034343698203960718243611137", "81509676465167"], ["21888242871839275222246405745257275088548364400416034343698203760711102615869", "192039237854001", "1092764687316827", "21888242871839275222246405745257275088548364400416034343698203017047452954886", "689781648317590", "21888242871839275222246405745257275088548364400416034343698203951745363160303"]], [["107831686821663", "21888242871839275222246405745257275088548364400416034343698203000535723782022", "1307448645003427", "369404191675821", "726456496960463", "21888242871839275222246405745257275088548364400416034343698203765265253572563"], ["21888242871839275222246405745257275088548364400416034343698203755903739629726", "1642247106948736", "21888242871839275222246405745257275088548364400416034343698202637301414493782", "21888242871839275222246405745257275088548364400416034343698203569774855292985", "21888242871839275222246405745257275088548364400416034343698203580478152557386", "429667431857304"], ["113645572164380", "21888242871839275222246405745257275088548364400416034343698203729259651670523", "430271667132257", "176630371212324", "175994152376346", "21888242871839275222246405745257275088548364400416034343698204064097327437011"], ["329184173432093", "53543535159209", "21888242871839275222246405745257275088548364400416034343698203549691575400601", "385316303773242", "21888242871839275222246405745257275088548364400416034343698203613389804536951", "224642967241192"], ["21888242871839275222246405745257275088548364400416034343698203183701861990323", "21888242871839275222246405745257275088548364400416034343698203678202808702003", "1900456153178415", "21888242871839275222246405745257275088548364400416034343698203573268926309736", "1891989250131085", "21888242871839275222246405745257275088548364400416034343698203401238380903637"]], [["31588858218113", "21888242871839275222246405745257275088548364400416034343698204123704349947050", "21888242871839275222246405745257275088548364400416034343698204176196375784080", "86831313962776", "21888242871839275222246405745257275088548364400416034343698204174659503102280", "21888242871839275222246405745257275088548364400416034343698204183185596751871"], ["687061524980600", "21888242871839275222246405745257275088548364400416034343698203841187159745282", "15819400851490", "101248564614881", "21888242871839275222246405745257275088548364400416034343698203526247703141872", "214441400106770"], ["189545532914606", "516284156865187", "21888242871839275222246405745257275088548364400416034343698203430655617552177", "21888242871839275222246405745257275088548364400416034343698204080526497651415", "21888242871839275222246405745257275088548364400416034343698203542340176916258", "309759746160861"], ["1327457639023999", "21888242871839275222246405745257275088548364400416034343698203968987485125832", "21888242871839275222246405745257275088548364400416034343698203623082439788191", "133246225714721", "21888242871839275222246405745257275088548364400416034343698202562399680760101", "601622332876542"], ["21888242871839275222246405745257275088548364400416034343698203940234987775280", "146388298690605", "21888242871839275222246405745257275088548364400416034343698203724662504972410", "401474424703208", "114640825754094", "21888242871839275222246405745257275088548364400416034343698204155921277896933"]]], "bias": ["0", "0", "0", "0", "0", "0"]} |