Skip to content

Commit

Permalink
Update fc.circom
Browse files Browse the repository at this point in the history
  • Loading branch information
namnc committed Feb 27, 2024
1 parent 6335fd8 commit caad9d9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/assets/fc.circom
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
pragma circom 2.0.0;

template Switcher() {
signal input sel;
signal input L;
signal input R;
signal output outL;
signal output outR;

signal aux;

aux <== (R-L)*sel; // We create aux in order to have only one multiplication
outL <== aux + L;
outR <== -aux + R;
}


template fc (width, height) {
signal input in[width];
signal input weights[height][width];
Expand Down

0 comments on commit caad9d9

Please sign in to comment.