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