Skip to content

Commit 3e5c592

Browse files
committed
reset floatx and epsilon
1 parent 8f22562 commit 3e5c592

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/testthat/test-backend.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,15 @@ test_backend("k_set_floatx", {
120120
skip_if_theano()
121121
k_set_floatx("float16")
122122
expect_identical(k_floatx(), "float16")
123+
k_set_floatx("float32")
124+
expect_identical(k_floatx(), "float32")
123125
})
124126

125127
test_backend("k_set_epsilon", {
126128
skip_if_cntk()
127129
skip_if_theano()
128130
k_set_epsilon(1e-4)
129131
expect_equal(k_epsilon(), 1e-4)
132+
k_set_epsilon(1e-07)
133+
expect_equal(k_epsilon(), 1e-07)
130134
})

0 commit comments

Comments
 (0)