GeluActivation

class GeluActivation(approximate: Boolean) : Activation

See also

Constructors

GeluActivation
Link copied to clipboard
fun GeluActivation(approximate: Boolean = false)

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

approximate
Link copied to clipboard
val approximate: Boolean = false

The boolean flag to toggle approximation.