Skip to content

Commit

Permalink
use r-keras env by default
Browse files Browse the repository at this point in the history
  • Loading branch information
t-kalinowski committed Jul 24, 2023
1 parent dc31d4f commit 759f523
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

- Default TF version installed by `install_keras()` is now 2.13.

- `install_keras()` `envname` argument default changes to `"r-keras"`. Unless
the `envname` argument is supplied, `install_keras()` will install into a
virtual environment named "r-keras".

- Updated layers:
- `layer_batch_normalization()` updated signature, with changes to options for distributed training.
- `layer_embedding()` gains a `sparse` argument.
Expand Down
2 changes: 2 additions & 0 deletions R/install.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ install_keras <- function(method = c("auto", "virtualenv", "conda"),
tensorflow = version,
extra_packages = NULL,
...,
envname = "r-keras",
pip_ignore_installed = TRUE) {
method <- match.arg(method)

Expand Down Expand Up @@ -53,6 +54,7 @@ install_keras <- function(method = c("auto", "virtualenv", "conda"),
conda = conda,
version = tensorflow,
extra_packages = pkgs,
envname = envname,
pip_ignore_installed = pip_ignore_installed,
...
)
Expand Down
2 changes: 1 addition & 1 deletion R/package.R
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ keras <- NULL

priority = 10, # tensorflow priority == 5

environment = "r-tensorflow",
environment = "r-keras",

get_module = function() {
resolve_implementation_module()
Expand Down

0 comments on commit 759f523

Please sign in to comment.