def test_tanh():
    l = layer.Tanh()
    x = np.ones((100, 5))
    (y, c) = l.forward(x)
    assert (y.shape == (100, 5))
    assert np.all((c == y))
def test_tanh():
    l = layer.Tanh()
    x = np.ones((100, 5))
    (y, c) = l.forward(x)
    assert (y.shape == (100, 5))
    assert np.all((c == y))