Esempio n. 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')
Esempio n. 2
0
def test_Softsign(tmpdir):
    model = C.softsign([[-1, -0.5, 0, 1, 2]])
    verify_no_input(model, tmpdir, 'Softsign_0')
Esempio n. 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')