有須要的朋友能夠參考一下python
一、安裝Anacondawindows
下載:https://www.continuum.io/downloads,我用的是Python 3.5 api
三、測試:bash
1 # 進入一個交互式 TensorFlow 會話. 2 import tensorflow as tf 3 sess = tf.InteractiveSession() 4 5 x = tf.Variable([1.0, 2.0]) 6 a = tf.constant([3.0, 3.0]) 7 8 # 使用初始化器 initializer op 的 run() 方法初始化 'x' 9 x.initializer.run() 10 11 # 增長一個減法 sub op, 從 'x' 減去 'a'. 運行減法 op, 輸出結果 12 sub = tf.sub(x, a) 13 sub.eval() 14 # ==> [-2. -1.]
四、關閉測試
當你不用 TensorFlow 的時候,關閉環境:google
deactivate