From eca81d4d31dc083de5df2c722cd36662c561211b Mon Sep 17 00:00:00 2001 From: Alexandre Passos Date: Tue, 7 Feb 2017 12:58:00 -0800 Subject: Better error message from trying to differentiate PreventGradient. Also fix small lint error in gradients_impl.py Change: 146822514 --- tensorflow/python/kernel_tests/xent_op_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tensorflow/python/kernel_tests/xent_op_test.py') 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): -- cgit v1.2.3