mirror of
https://github.com/Veridise/Picus.git
synced 2026-05-11 03:00:06 -04:00
15 lines
233 B
Plaintext
15 lines
233 B
Plaintext
pragma circom 2.0.3;
|
|
|
|
include "./util.circom";
|
|
|
|
// ReLU layer
|
|
template ReLU () {
|
|
signal input in;
|
|
signal output out;
|
|
|
|
component isPositive = IsPositive();
|
|
|
|
isPositive.in <== in;
|
|
|
|
out <== in * isPositive.out;
|
|
} |