vkML 0.1.0

GELU

Apply the Gaussian error linear unit, element-wise.

class GELU : Modulepython/vkml/nn.py:319

A stateless wrapper: forward calls gelu and nothing else. It exists so the activation can sit inside a Sequential. See gelu for the numerical behaviour, which is where the substance is.

Forward

forward

def forwardself, x: V.Tensor -> V.Tensorpython/vkml/nn.py:320

See also gelu, Sequential

vkML — Vulkan-first machine learning in C++20. Apache-2.0. Signatures on this page are generated from the installed module.