TensorFlow学习笔记(一)基本操作

sdl55474 18 0 PDF 2020-12-23 05:12:53

TensorFlow学习笔记(一)基本操作 Opation type (1)element-wise ±*/ b=tf.fill([2,2],2.) a=tf.ones([2,2]) a+b,a-b,a*b,a/b,b//a,b%a (2)matrix-wise @,matmul a@b tf.matmul(a, b) (3)dim-wise reduce_mean/max/min/sum x=tf.ones([4,2]) W=tf.ones([2,1]) b=tf.constant(0.1) x@W+b # 合并与分割 (1)concat(拼接) a = tf.ones([4,

用户评论
请输入评论内容
评分:
暂无评论