SoftShrinkActivation

class SoftShrinkActivation(lower: Float, upper: Float) : Activation

See also

Constructors

SoftShrinkActivation
Link copied to clipboard
fun SoftShrinkActivation(lower: Float = -0.5f, upper: Float = 0.5f)

Functions

apply
Link copied to clipboard
open override fun apply(tf: Ops, features: Operand<Float>): Operand<Float>

Applies the activation functions to the input features to produce the output.

open fun apply(tf: Ops, features: Operand<Float>, name: String = ""): Operand<Float>

Applies the activation functions to the input features to produce the output.

Properties

lower
Link copied to clipboard
val lower: Float

lower bound for setting values to zeros

upper
Link copied to clipboard
val upper: Float = 0.5f

upper bound for setting values to zeros