close
(1) 安裝Anaconda
(2) 在Anaconda中創造一個r-tensorflow的虛擬環境
(3) 在r-tensorflow的環境裡,安裝tensorflow/keras
>> conda install tensorflow -c conda-forge
>> conda install keras -c conda-forge
Some parts of the tutorial have been obsolete so you may meet such an error message:
# Test Tensorflow: Say hello
require(tensorflow)
sess =tf$Session()
hello <-tf$constant('Hello, TensorFlow!')
sess$run(hello)
raise RuntimeError('The Session graph is empty. Add operations to the '
RuntimeError: The Session graph is empty. Add operations to the graph before calling run().
References:
- R系列筆記
- https://tensorflow.rstudio.com/installation/
-
[机器学习]RuntimeError: The Session graph is empty. Add operations to the graph before calling run(). 报错解决方法
全站熱搜