Tensorflow使用技巧
1. tf.random_uniform的使用
tf.random_uniform((4, 4), minval=low,maxval=high,dtype=tf.float32)))返回4*4的矩阵,产生于low和high之间,产生的值是均匀分布的。
如theta = tf.Variable(tf.random_uniform([n + 1, 1], -1.0, 1.0, seed=42)...
原创
2018-10-15 22:35:46 ·
75 阅读 ·
0 评论