integerLinearSaturatePerChannel(scale:offset:shift:)
Returns an activation function that computes an arithmetic shift, preserving sign for each channel.
Declaration
static func integerLinearSaturatePerChannel(scale: UnsafePointer<Int32>, offset: UnsafePointer<Int32>, shift: UnsafePointer<Int32>) -> BNNSActivationParameters
- scale:
The scale for the activation function.
- offset:
The offset for the activation function.
- shift:
The arithmetic shift for the activation function.