随笔分类 -  tensorflow

摘要:在tensorflow的使用中,经常会使用tf.reduce_mean,tf.reduce_sum等函数,在函数中,有一个reduction_indices参数,表示函数的处理维度,直接上图,一目了然: 需要注意的一点,在很多的时候,我们看到别人的代码中并没有reduction_indices这个参 阅读全文
posted @ 2017-03-14 11:00 校草的舍友 阅读(14958) 评论(1) 推荐(4)
摘要:tensorflow一些函数: 1、tf.ones(shape,type=tf.float32,name=None) tf.ones([2, 3], int32) ==> [[1, 1, 1], [1, 1, 1]] 2、tf.zeros(shape,type=tf.float32,name=Non 阅读全文
posted @ 2016-12-27 21:08 校草的舍友 阅读(2226) 评论(0) 推荐(0)