def test_Softplus(tmpdir): model = C.softplus([[-1, -0.5, 0, 1, 2]]) verify_no_input(model, tmpdir, 'Softplus_0')
def test_Softplus(tmpdir, dtype): with C.default_options(dtype=dtype): model = C.softplus([[-1, -0.5, 0, 1, 2]]) verify_no_input(model, tmpdir, 'Softplus_0')
def inner(a): return a * C.tanh(C.softplus(a))
def test_Softplus(tmpdir, dtype): with C.default_options(dtype = dtype): model = C.softplus([[-1, -0.5, 0, 1, 2]]) verify_no_input(model, tmpdir, 'Softplus_0')