Make L2 norm computation more stable.
authorSurya Bhupatiraju <sbhupatiraju@google.com>
Tue, 20 Mar 2018 01:51:06 +0000 (18:51 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Tue, 20 Mar 2018 01:55:52 +0000 (18:55 -0700)
commit48adc7ba73177f2a9331918b160bc3d0775985b8
tree903dbf829148c8d4da04c5d460a7ed8c72ba74db
parent28a6a8b235dafd6610e95dc05676d5b64fa5a404
Make L2 norm computation more stable.

Avoids the potentially numerically instable square root in the linalg_ops.norm() function because we 'undo' that operation with a math_ops.square() operation anyway.

PiperOrigin-RevId: 189677716
tensorflow/contrib/gan/python/eval/python/classifier_metrics_impl.py