Пример #1
0
def test_Softsign(tmpdir, dtype):
    with C.default_options(dtype=dtype):
        model = C.softsign(np.array([[-1, -0.5, 0, 1, 2]]).astype(dtype))
        verify_no_input(model, tmpdir, 'Softsign_0')
Пример #2
0
def test_Softsign(tmpdir):
    model = C.softsign([[-1, -0.5, 0, 1, 2]])
    verify_no_input(model, tmpdir, 'Softsign_0')
Пример #3
0
def test_Softsign(tmpdir, dtype):
    with C.default_options(dtype = dtype):
        model = C.softsign(np.array([[-1, -0.5, 0, 1, 2]]).astype(dtype))
        verify_no_input(model, tmpdir, 'Softsign_0')