vkML 0.1.0

Sigmoid

Apply the logistic function, element-wise.

class Sigmoid : Modulepython/vkml/nn.py:314

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

Forward

forward

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

See also sigmoid, Sequential

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