integerLinearSaturate(scale:offset:shift:)
Returns an activation function that computes an arithmetic shift, preserving sign.
Declaration
static func integerLinearSaturate(scale: Int32 = 1, offset: Int32 = 0, shift: Int32 = 0) -> BNNSActivationParameters
- scale:
The scale for the activation function.
- offset:
The offset for the activation function.
- shift:
The arithmetic shift for the activation function.