rstudio / tensorflow.rstudio.com

https://tensorflow.rstudio.com
9 stars 12 forks source link

issues with using tensorflow / keras on Posit Cloud #45

Open jkylearmstrong opened 1 year ago

jkylearmstrong commented 1 year ago

Attempting to install keras on Posit Cloud with

install.packages('rmarkdown')
install.packages('reticulate')
install.packages('keras')
install.packages("tensorflow")
install.packages('devtools')

library(reticulate)
library(keras)
library(tensorflow)

virtualenv_create("myenv")
use_virtualenv("myenv", required = TRUE)
install_tensorflow(method="virtualenv", 
                   envname="myenv", 
                   pip_options = "--no-cache-dir", 
                   version = "cpu")

install_keras(method="virtualenv", 
              envname="myenv", 
              pip_options = "--no-cache-dir",
              version = "cpu")

but when attempting to run this Deep Learning with R notebook 2.1

I am getting

2022-12-22 22:14:46.706060: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 AVX512F FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.