Tanh
Apply the hyperbolic tangent, element-wise.
class Tanh : Module— python/vkml/nn.py:309
A stateless wrapper: forward calls tanh and nothing else. It exists so the activation can sit inside a Sequential. See tanh for the numerical behaviour, which is where the substance is.
Forward¶
forward¶
def forwardself, x: V.Tensor -> V.Tensor— python/vkml/nn.py:310
See also tanh, Sequential