Skip to content

Commit a9d2fbc

Browse files
committed
best, but suboptimal, attempt to stop tf from borking the test summary output
1 parent 7913b2b commit a9d2fbc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/testthat/test_aaaa.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# keras is pretty tenacious about writing output to the R session. By default
2+
# this gets inserted into the test results. To make this less hideous, we
3+
# try to trigger the output here so that it shows up at the top of the testing.
4+
5+
Sys.setenv(TF_CPP_MIN_LOG_LEVEL = '3')
6+
try(keras:::backend(), silent = TRUE)

0 commit comments

Comments
 (0)