Minor eager-related performance improvements
authorAkshay Modi <nareshmodi@google.com>
Tue, 13 Feb 2018 19:56:59 +0000 (11:56 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Tue, 13 Feb 2018 20:00:40 +0000 (12:00 -0800)
commit142351b998a6471f26b5c9ba74d09b107cd96c68
tree0ca6b9c47ab9cd1da17a148d7bf73b938ec6c6da
parent20dc0dec68d539563729c7533aece9d1f0f8e128
Minor eager-related performance improvements

- Add a cache for name_scope
- skip some overhead _MulGrad and _MatMulGrad

PiperOrigin-RevId: 185565363
tensorflow/python/framework/ops.py
tensorflow/python/ops/math_grad.py