If two identical functions are given different grad func,
authorA. Unique TensorFlower <gardener@tensorflow.org>
Fri, 27 Apr 2018 21:28:12 +0000 (14:28 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Fri, 27 Apr 2018 21:31:07 +0000 (14:31 -0700)
commita4dbc33512adb3705345b093a0aafec151e7e32d
tree7922e1cf71084d592008299f99a0cf509a0714bc
parent6da711a50c3ef98aebacd6a909596a0f74b783e1
If two identical functions are given different grad func,
they should be named differently. Otherwise, tf.gradients
gets confused.

PiperOrigin-RevId: 194593519
tensorflow/python/framework/function.py
tensorflow/python/framework/function_test.py
tensorflow/python/ops/gradients_impl.py