ReLU
Apply the rectified linear unit, element-wise.
class ReLU : Module— python/vkml/nn.py:304
A stateless wrapper: forward calls relu and nothing else. It exists so the activation can sit inside a Sequential. See relu for the numerical behaviour, which is where the substance is.
Forward¶
forward¶
def forwardself, x: V.Tensor -> V.Tensor— python/vkml/nn.py:305
See also relu, Sequential