GELU: GELU activation function

View source: R/gelu.R

GELUR Documentation

GELU activation function

Description

GELU activation function

Usage

GELU(x)

Arguments

x

numeric vector

Value

numeric vector

See Also

Other Activation Functions: ELU(), PReLU(), ReLU(), SELU(), Swish(), dELU(), dGELU(), dPReLU(), dReLU(), dSELU(), dSwish(), dlReLU(), dsoftplus(), lReLU(), softplus()

Examples


GELU(c(-2, -1, 0, 1, 2))

# you can use rxode2 as well
r <- rxode2({
  r = GELU(time)
})
et <- et(c(-2, -1, 0, 1, 2))
rxSolve(r, et)


nlmixr2/rxode2 documentation built on Jan. 11, 2025, 8:48 a.m.