![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
TensorFlow
OK~
这个作者很懒,什么都没留下…
展开
-
【初学】TensorFlow
首先来个经典小案例: import tensorflow as tf #定义‘符号’变量,也称为占位符 a = tf.placeholder("float") #placeholder占位符,设置变量 b = tf.placeholder("float") y = tf.multiply(a, b) #构造一个op节点 乘法 sess = tf.Session()#建立会话 #运行会话,输入数...原创 2018-10-08 21:40:22 · 153 阅读 · 2 评论 -
使用seesion的方法
import tensorflow as tf m1 = tf.constant([[2, 2]]) m2 = tf.constant([[3], [3]]) dot_operation = tf.matmul(m1, m2) print(dot_operation) # 这里并没有结果 # 使用seesion ,方法1 sess = tf.Session()...原创 2018-10-09 19:56:07 · 200 阅读 · 0 评论