深度学习--第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.
相关文章
相关标签/搜索