Skip to content

Commit

Permalink
install "tensorflow-metal" on arm macs
Browse files Browse the repository at this point in the history
  • Loading branch information
t-kalinowski committed Aug 16, 2023
1 parent 69bbb99 commit 7dbd9c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/install.R
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ function(method = c("auto", "virtualenv", "conda"),
python_version <- min(available$version[, 1:2])
}

if(is_mac_arm64())
packages <- c(packages, "tensorflow-metal")

reticulate::py_install(
packages = packages,
envname = envname,
Expand Down

0 comments on commit 7dbd9c8

Please sign in to comment.