深度學習--第2章 tensorflow圖和會話

第1節 tensorflow圖的結構 import tensorflow as tf def add(a,b): return a+b a = 1 b = 2 c=add(a,b) print(c) 將以上程序改寫爲tensorflow計算方式: import tensorflow as tf #實現一個加法的運算 a = tf.constant(5.0) b = tf.constant(6.
相關文章
相關標籤/搜索