persistforever/cifar10-tensorflow

loss的计算

Opened this issue · 1 comments

screenshot from 2018-04-26 16-03-16

screenshot from 2018-04-26 15-58-05

既然喂给网络一个batch的数据,计算的不应该是一个batch的损失吗?为什么后面计算平均损失的时候需要再乘以batch_size?

@yyHaker I agree with you,maybe he intended to use "tf.reduce_mean" instead of "tf.reduce_sum"