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:

  1. R系列筆記
  2. https://tensorflow.rstudio.com/installation/
  3. [机器学习]RuntimeError: The Session graph is empty. Add operations to the graph before calling run(). 报错解决方法

arrow
arrow
    全站熱搜

    me1237guy 發表在 痞客邦 留言(0) 人氣()