Why does the Total Variation Loss in Tensorflow suggest to use reduce_sum
instead of reduce_mean
as a loss function?
This can be used as a loss-function during optimization so as to suppress noise in images. If you have a batch of images, then you should calculate the scalar loss-value as the sum:
loss = tf.reduce_sum(tf.image.total_variation(images))