mirror of
https://github.com/socathie/circomlib-ml.git
synced 2026-01-09 14:08:04 -05:00
15 lines
233 B
Plaintext
15 lines
233 B
Plaintext
pragma circom 2.0.0;
|
|
|
|
include "./util.circom";
|
|
|
|
// ReLU layer
|
|
template ReLU () {
|
|
signal input in;
|
|
signal output out;
|
|
|
|
component isPositive = IsPositive();
|
|
|
|
isPositive.in <== in;
|
|
|
|
out <== in * isPositive.out;
|
|
} |