Commit 26114e0d authored by Yuefeng Zhou's avatar Yuefeng Zhou Committed by TensorFlower Gardener
Browse files

Use x*x instead of x^2 to calculate square in huber loss implementation. The...

Use x*x instead of x^2 to calculate square in huber loss implementation. The reason is d(x^y)/dy = x^y * log(x) and when x is zero, it becomes NaN. Even if y is constant, the check op would still report failure.

PiperOrigin-RevId: 185208180
parent 8ced9faa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment