Skip to content

Commit

Permalink
install tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
t-kalinowski committed Oct 20, 2023
1 parent 9a591db commit fbc3a1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/install.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,14 @@ install_keras <- function(...,
system2 <- reticulate:::system2t
system2("git", "pull")
system2("python", c("-m pip install -r requirements.txt")) # unpin tf-nightly for Python 3.12

system2("python", c("-m pip uninstall -y keras keras-nightly"))
# system2("python", c("-m pip install ipython")) # for interactive debugging
# system2("python", c("-m pip install -r requirements-common.txt"))
# system2("python", c("-m pip install torch torchvision")) # needed for pip_build.py?? (but why?)
# system2("python", c("-m pip install tf-nightly jax[cpu]")) # unpin tf-nightly for Python 3.12

system2("python", c("pip_build.py --install"))
system2("python", c("-m pip uninstall -y torch torchvision"))
message("Done!")

return(invisible())
Expand Down
2 changes: 2 additions & 0 deletions tools/make.R
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ endpoints <-
# <class 'keras.initializers.constant_initializers.Zeros'>
# <class 'keras.initializers.random_initializers.RandomUniform'>

# TODO: next: losses, metrics, saving, guides/vignettes

df <-
endpoints |>
# c( "keras.layers.InputSpec", "keras.layers.Input" ) |>
Expand Down

0 comments on commit fbc3a1d

Please sign in to comment.