Skip to content

Commit 86a4e94

Browse files
author
Sigrid Keydana
committed
only test export_savedmodel if keras implementation
1 parent 6db261e commit 86a4e94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat/test-model-persistence.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ test_succeeds("model can be exported to TensorFlow", {
115115

116116
export <- function() tensorflow::export_savedmodel(model, model_dir)
117117

118-
if (grepl("^tensorflow", Sys.getenv("KERAS_IMPLEMENTATION"))) {
118+
if (!grepl("^keras", Sys.getenv("KERAS_IMPLEMENTATION"))) {
119119
expect_error(export())
120120
}
121121
else {

0 commit comments

Comments
 (0)