摘要: output output array([[ 0.24747071, -0.43886742], array([[ 0.24747071, -0.43886742], [-0.03916734, -0.70580089], [-0.03916734, -0.70580089], [ 0.004623 阅读全文
posted @ 2018-06-27 17:13 瘋耔 阅读(787) 评论(0) 推荐(0) 编辑
摘要: (1)tf.multiply是点乘,即Returns x * y element-wise. (2)tf.matmul是矩阵乘法,即Multiplies matrix a by matrix b, producing a * b. 阅读全文
posted @ 2018-06-27 16:28 瘋耔 阅读(224) 评论(0) 推荐(0) 编辑
摘要: ____tz_zs tf.random_normal 从正态分布中输出随机值。 . [python] view plain copy <span style="font-size:16px;">random_normal(shape,mean=0.0,stddev=1.0,dtype=tf.floa 阅读全文
posted @ 2018-06-27 16:08 瘋耔 阅读(1814) 评论(0) 推荐(0) 编辑
摘要: tf.random_uniform((4, 4), minval=low,maxval=high,dtype=tf.float32)))返回4*4的矩阵,产生于low和high之间,产生的值是均匀分布的。 例如: 输出: [[ 0.23706067 0.42579055 0.16444612 0.1 阅读全文
posted @ 2018-06-27 14:27 瘋耔 阅读(498) 评论(0) 推荐(0) 编辑
跳至侧栏