Esempio n. 1
0
def test_Softplus(tmpdir):
    model = C.softplus([[-1, -0.5, 0, 1, 2]])
    verify_no_input(model, tmpdir, 'Softplus_0')
Esempio n. 2
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')
Esempio n. 3
0
 def inner(a):
     return a * C.tanh(C.softplus(a))
Esempio n. 4
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')
Esempio n. 5
0
def test_Softplus(tmpdir):
    model = C.softplus([[-1, -0.5, 0, 1, 2]])
    verify_no_input(model, tmpdir, 'Softplus_0')