Merge "Add explanations for FusedActivationFunc values" am: e6273df6b8 am: 0bee214c21

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1673486

Change-Id: Ie1f758f24ccc6f5f8f271ee64cbdffa4ab15fef8
This commit is contained in:
Lev Proleev
2021-04-14 15:30:06 +00:00
committed by Automerger Merge Worker

View File

@@ -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,
}