diff options
author | 2017-02-07 12:58:00 -0800 | |
---|---|---|
committer | 2017-02-07 13:06:59 -0800 | |
commit | eca81d4d31dc083de5df2c722cd36662c561211b (patch) | |
tree | 31df118bc7624b66c6a0af07d09d35d962f08699 /tensorflow/python/kernel_tests/xent_op_test.py | |
parent | 79d495177e33d6621b53959504edc8abd90cd228 (diff) |
Better error message from trying to differentiate PreventGradient.
Also fix small lint error in gradients_impl.py
Change: 146822514
Diffstat (limited to 'tensorflow/python/kernel_tests/xent_op_test.py')
-rw-r--r-- | tensorflow/python/kernel_tests/xent_op_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/python/kernel_tests/xent_op_test.py b/tensorflow/python/kernel_tests/xent_op_test.py index c8c4e2bd1e..d037ceac61 100644 --- a/tensorflow/python/kernel_tests/xent_op_test.py +++ b/tensorflow/python/kernel_tests/xent_op_test.py @@ -191,7 +191,7 @@ class XentTest(test.TestCase): # Taking ths second gradient should fail, since it is not # yet supported. with self.assertRaisesRegexp(LookupError, - ".*No gradient defined.*PreventGradient.*"): + "explicitly disabled"): _ = gradients_impl.hessians(loss, [f]) def testWrapper(self): |