Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60aa6c2b authored by Lev Proleev's avatar Lev Proleev
Browse files

Add explanations for FusedActivationFunc values

Fix: 183117976
Test: m
Change-Id: I55f4b7e3287e5bfdde6c2a2f94cee757c020c2d0
parent 303991b3
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -22,8 +22,20 @@ package android.hardware.neuralnetworks;
@VintfStability
@Backing(type="int")
enum FusedActivationFunc {
    /**
     * No activation.
     */
    NONE,
    /**
     * ReLU(x) = max(0, x)
     */
    RELU,
    /**
     * ReLU1(x) = min(1, max(-1, x))
     */
    RELU1,
    /**
     * ReLU6(x) = min(6, max(0, x))
     */
    RELU6,
}