def d_tanh()

in python/lltm_baseline.py [0:0]


def d_tanh(z):
    t = torch.tanh(z)
    return 1 - (t * t)