Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to TF v2.18 #610

Merged
merged 5 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading