mirror of
https://github.com/socathie/circomlib-ml.git
synced 2026-01-10 14:37:58 -05:00
* feat: `Poly` renamed to `ZeLU` with scaling implemented * fix: assertion in `ZeLU` * feat: `AveragePooling2D` with scaling * feat: `BatchNorm` with scaling * feat: `Conv1D` with scaling * feat: `Conv2D` with scaling * feat: `Dense` with scaling * fix: assertion in `Dense` * feat: `GlobalAveragePooling2D` with scaling * feat: input-only `ArgMax` * feat: input-only `Flatten2D` * feat: input-only `GlobalMaxPooling2D` * feat: input-only `MaxPooling2D` * feat: input-only `ReLU` * test: precision up to 36 decimals * chore: clean up * test: model1 with 36 decimals * fix: ReLU should use `p//2` as threshold * test: clean up * test: mnist model with 18 decimals * build: Update package.json version to 2.0.0 * chore: Update README with warning message
19 lines
315 B
Plaintext
19 lines
315 B
Plaintext
pragma circom 2.0.0;
|
|
|
|
include "../../circuits/ReLU.circom";
|
|
|
|
template relu_test() {
|
|
signal input in[3];
|
|
signal input out[3];
|
|
|
|
component relu[3];
|
|
|
|
for (var i=0; i<3; i++) {
|
|
relu[i] = ReLU();
|
|
|
|
relu[i].in <== in[i];
|
|
relu[i].out <== out[i];
|
|
}
|
|
}
|
|
|
|
component main = relu_test(); |