Skip to content

Commit

Permalink
Merge pull request #610 from rstudio/v2-18
Browse files Browse the repository at this point in the history
Update to TF v2.18
  • Loading branch information
t-kalinowski authored Oct 30, 2024
2 parents 4da7560 + 2875a5b commit e26a203
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ jobs:
# - {os: 'macOS-latest' , tf: 'release', r: 'release'}

## old keras/tf versions
# - {os: 'ubuntu-latest', tf: '2.18', r: 'release'}
- {os: 'ubuntu-latest', tf: '2.17', r: 'release'}
- {os: 'ubuntu-latest', tf: '2.16', r: 'release'}
- {os: 'ubuntu-latest', tf: '2.15', r: 'release'}
- {os: 'ubuntu-latest', tf: '2.14', r: 'release'}
- {os: 'ubuntu-latest', tf: '2.13', r: 'release'}
- {os: 'ubuntu-latest', tf: '2.12', r: 'release'}
- {os: 'ubuntu-latest', tf: '2.9' , r: 'release'}

# these are allowed to fail
# - {os: 'ubuntu-latest', tf: '2.14.0rc1', r: 'release'}
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ Suggests:
pillar,
withr,
callr
RoxygenNote: 7.3.1
RoxygenNote: 7.3.2
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# tensorflow (development version)

- `install_tensorflow()` installs TensorFlow v2.18 by default.
- Fixed an issue where GPUs would not be found when running on Windows
WSL Linux (reported in rstudio/keras3#1456, fixed in #599)
- Fixes for NumPy 2.0 (#601)
Expand Down
2 changes: 1 addition & 1 deletion R/install.R
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ function(method = c("auto", "virtualenv", "conda"),
invisible(NULL)
}

default_version <- numeric_version("2.16")
default_version <- numeric_version("2.18")

parse_tensorflow_version <- function(version) {
# returns unquoted string directly passable to pip, e.g 'tensorflow==2.5.*'
Expand Down
2 changes: 1 addition & 1 deletion man/install_tensorflow.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/testthat/test-generic-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ for (fn in list(cbind, rbind)) {
expect_equivalent_bind_generic(fn, as.array(1L), 1L)
expect_equal(fn(as_tensor(1:3), 1:3, dtype = "int64")$dtype$name, "int64")
expect_equal(fn(as_tensor(1:3), 1:3, dtype = "int16")$dtype$name, "int16")
expect_equal(fn(as_tensor(1:3), 1:3, dtype = "float16")$dtype$name, "float16")
expect_equal(fn(as_tensor(1:3), 1:3, dtype = "float32")$dtype$name, "float32")
}


Expand Down

0 comments on commit e26a203

Please sign in to comment.