Skip to content

Commit

Permalink
Merge pull request #1462 from rstudio/retether-3.4.1
Browse files Browse the repository at this point in the history
Retether-3.4.1
  • Loading branch information
t-kalinowski authored Jun 27, 2024
2 parents e5817d9 + 3913aeb commit 8d33e07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

- `keras_shape` objects (as returned by `keras3::shape()`) gain `==` and `!=` methods.

- Added compatibility with Keras v3.4.1 (no R user facing changes).

User facing changes with upstream Keras v3.4.0:

- New function:
Expand Down
4 changes: 4 additions & 0 deletions R/install.R
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ install_keras <- function(
packages = NULL
)
extra_packages <- unique(extra_packages)

if(!any(grepl("^numpy[=><!]?", extra_packages)))
extra_packages <- c(extra_packages, "numpy<2")

if (length(extra_packages))
reticulate::py_install(extra_packages, envname = envname)

Expand Down

0 comments on commit 8d33e07

Please sign in to comment.