chiphuyen/stanford-tensorflow-tutorials

huber loss equation in eager execution

fsilavong opened this issue · 0 comments

Hi, I was going through the assignments and realised that the huber loss equation was multiplied by two here:

return t ** 2 if tf.abs(t) <= m else m * (2 * tf.abs(t) - m)

Any reason for that?