Atenção Se você estiver executando isso no seu Jupyter local, usando o Anaconda, é preciso instalar o módulo python do TensorFlow. Saia do Jupyter Notebook e digite na console (dentro do ambiente Anaconda): pip install tensorflow
Depois, rode o Jupyter Notebook novamente e execute este notebook.
In [2]:
install.packages('tensorflow', repos='http://cran.us.r-project.org')
In [3]:
library(tensorflow)
install_tensorflow()
In [1]:
library(tensorflow)
sess = tf$Session()
hello <- tf$constant('Hello, TensorFlow!')
sess$run(hello)
In [ ]: