Skip to content

Commit bae5815

Browse files
committed
accept install_keras(version="cpu")
1 parent 7225c3f commit bae5815

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/install.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ default_extra_packages <- function(tensorflow_version) {
6161
constraint <- sub("^([><=~]{,2}).*", "\\1", v)
6262
v <- substr(v, nchar(constraint)+1, nchar(v))
6363

64-
if(v == "default")
64+
if(v %in% c("default", "")) # "" might be from cpu|gpu
6565
v <- default_version
6666

6767
v <- numeric_version(v)

0 commit comments

Comments
 (0)