204 Commits

Author SHA1 Message Date
Kevin Mai-Husan Chia
52a515332a Merge pull request #52 from exfinen/mpcstats
Remove note on ubuntu 22.04 section
2024-06-10 22:33:28 +08:00
exfinen
6faa4cf220 remove note on ubuntu 22.04 section 2024-06-10 19:58:41 +09:00
JernKunpittaya
d41615451f Merge pull request #51 from ZKStats/more_ops
size, index, cat w/o dimension yet
2024-06-06 20:09:27 +07:00
JernKunpittaya
26bc5b8ac0 size, index, cat w/o dimension yet 2024-06-05 19:42:40 +07:00
JernKunpittaya
c5e0112f04 Merge pull request #50 from ZKStats/make_2d_keras
format input to 2d
2024-06-05 10:29:24 +07:00
JernKunpittaya
8fd1399ade format tuple([data]) 2024-06-05 10:26:23 +07:00
JernKunpittaya
824fd1021e format input to 2d 2024-06-05 10:20:18 +07:00
JernKunpittaya
ee10464169 Merge pull request #46 from ZKStats/feat/non-witness-lib
Skeleton for non-witness approach
2024-06-04 22:26:46 +07:00
JernKunpittaya
8efce17082 Merge pull request #49 from ZKStats/no_batch_size
remove batch_size, make tensor 2D instead of 3D
2024-06-04 22:21:28 +07:00
JernKunpittaya
abee95d3fa remove batch_size, make tensor 2D instead of 3D 2024-06-04 21:51:37 +07:00
Kevin Mai-Husan Chia
d650b9f629 Merge pull request #47 from exfinen/mpcstats
Update README of onnx2circom
2024-06-04 16:36:29 +08:00
exfinen
ef0d037547 add notes about MP-SPDZ library installation 2024-06-03 23:31:42 +09:00
exfinen
1b48f1acdf Apply suggestions from code review
Avoid adding kevin_mpc and fetch origin's arith-executor

Co-authored-by: Kevin Mai-Husan Chia <mhchia@users.noreply.github.com>
2024-06-03 22:35:51 +09:00
exfinen
7f191341ec update readme 2024-06-03 21:43:07 +09:00
mhchia
8595335e63 update torch.mean to support tensor after where 2024-06-03 19:22:04 +08:00
mhchia
d52ffff724 work with torch.mean but not with where 2024-05-31 19:09:18 +08:00
mhchia
f394a01b35 Add MPCState for non-witness approach 2024-05-31 18:59:12 +08:00
JernKunpittaya
7c2e8fd30f Merge pull request #45 from ZKStats/fix/param_setting
fix param_vis to fixed
2024-05-31 14:57:44 +07:00
JernKunpittaya
bfbd00755a Merge pull request #44 from ZKStats/fix/param_setting
fix param_vis to fixed
2024-05-31 14:55:51 +07:00
JernKunpittaya
0ffec808f7 fix param_vis to fixed 2024-05-31 14:48:51 +07:00
mhchia
c39be12a88 add tests for zkstats computation and add tfabs 2024-05-30 13:37:20 +08:00
JernKunpittaya
f0ab9a53da Merge pull request #42 from ZKStats/feat/bool_stuffs_ops_rebased_on_parse_outputs
Feat/bool stuffs ops rebased on parse outputs
2024-05-29 14:22:00 +07:00
JernKunpittaya
488fa61b8d clarify torch.log() issue 2024-05-29 14:19:08 +07:00
mhchia
7e956cb3f5 fix: replace rtol with atol to check error in percentage 2024-05-28 13:50:32 +08:00
mhchia
d6ef9bb134 refactor test_where 2024-05-27 23:08:36 +08:00
mhchia
c397669d9d Merge branch 'feat/parse-outputs' into feat/bool_stuffs_ops_rebased_on_parse_outputs 2024-05-27 22:43:32 +08:00
mhchia
29536fd334 fix: typo in comment 2024-05-24 17:45:05 +08:00
mhchia
259210ddf2 fix: make sure inputs passed to circom-MP-SPDZ are correct
we didn't check if input names are actually the same order as tensors.
there might be errors if they don't match
2024-05-24 17:41:35 +08:00
JernKunpittaya
46aa4ab2b0 comment problem 2024-05-24 00:35:39 +07:00
JernKunpittaya
36644c121a bool stuffs work win weird parser swap behavior 2024-05-24 00:25:27 +07:00
mhchia
6931b69353 return outputs in list 2024-05-24 00:25:13 +08:00
mhchia
a0c398083d fix tests in test_two_inputs 2024-05-23 22:22:50 +08:00
mhchia
75e2f8cbc0 parse mpspdz outputs 2024-05-23 22:22:50 +08:00
JernKunpittaya
85818720ba placeholder fix keras constant issue 2024-05-23 20:26:36 +07:00
JernKunpittaya
62b8df635b Merge pull request #39 from ZKStats/fix/log-incorrect-lack-of-parentheses
fix log due to wrong operator precedence
2024-05-23 20:15:49 +07:00
mhchia
a3fb6a4398 use cint and sint instead of cfix and cint 2024-05-23 14:22:23 +08:00
mhchia
9c0fc15f65 fix: operators precedence 2024-05-22 20:48:27 +08:00
JernKunpittaya
53964495a9 Merge pull request #37 from ZKStats/feat/more-ops
Correct 2-inputs function
2024-05-22 11:15:59 +07:00
JernKunpittaya
3338ce5845 Merge pull request #38 from mhchia/feat/more-ops
Refactor
2024-05-22 11:14:57 +07:00
mhchia
dbd4ed69ac fix path 2024-05-22 01:12:40 +08:00
mhchia
91ae8cc0dc fix bug in parsing layer; also, add tests 2024-05-22 01:09:25 +08:00
mhchia
f4e26b0099 use latest circom-MP-SPDZ 2024-05-21 23:07:35 +08:00
mhchia
8a01835caf fix mpc.circom 2024-05-21 23:06:41 +08:00
mhchia
8f0e4a3df4 add scale 2024-05-21 16:49:50 +08:00
mhchia
94c3f2a9e8 add scaling for constants 2024-05-21 16:42:50 +08:00
mhchia
cf9dc3d9c1 add comments 2024-05-21 16:27:17 +08:00
mhchia
6a26eafcec refactor: keep transpiler generic 2024-05-21 16:23:01 +08:00
JernKunpittaya
69bba6eafd back to path template 2024-05-21 00:54:05 +07:00
JernKunpittaya
1464722b1a support two inputs correctly 2024-05-21 00:51:10 +07:00
JernKunpittaya
81fdbcd7f3 reshape/neg layer, example on2keras,not simplify onnx_loader 2024-05-15 14:57:11 +07:00