tensorflow学习笔记
https://www.cnblogs.com/lienhua34/p/5998853.html
import tensorflow as tf a = tf.constant(1) b = tf.constant(2) c = tf.constant(3) d = tf.constant(4) add1 = tf.add(a, b) mul1 = tf.mul(b, c) add2 = tf.add(c, d) output = tf.add(add1, mul1) with tf.Session() as sess: print sess.run(output) # result: 9
tensorflow张量的计算也会涉及到类似numpy的broadcast机制:
各种梯度优化算法
http://ruder.io/optimizing-gradient-descent/index.html
积小流以汇江海,细微做起