aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/kernel_tests/xent_op_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/kernel_tests/xent_op_test.py')
-rw-r--r--tensorflow/python/kernel_tests/xent_op_test.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/tensorflow/python/kernel_tests/xent_op_test.py b/tensorflow/python/kernel_tests/xent_op_test.py
index 43be08f8a1..4b3dadc112 100644
--- a/tensorflow/python/kernel_tests/xent_op_test.py
+++ b/tensorflow/python/kernel_tests/xent_op_test.py
@@ -181,24 +181,6 @@ class XentTest(test.TestCase):
print("cross entropy gradient err = ", err)
self.assertLess(err, 5e-8)
- def testGradientLabelWithV2(self):
- with self.test_session():
- l = constant_op.constant(
- [0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.5, 0.0, 0.5],
- shape=[3, 4],
- dtype=dtypes.float64,
- name="l")
- f = constant_op.constant(
- [0.1, 0.2, 0.3, 0.4, 0.1, 0.4, 0.9, 1.6, 0.1, 0.8, 2.7, 6.4],
- shape=[3, 4],
- dtype=dtypes.float64,
- name="f")
- x = nn_ops.softmax_cross_entropy_with_logits_v2(labels=l, logits=f,
- name="xent")
- err = gradient_checker.compute_gradient_error(l, [3, 4], x, [3])
-
- self.assertLess(err, 5e-8)
-
def testSecondGradient(self):
with self.test_session() as sess:
l = constant_op.constant([0.0, 0.0, 1.0/3, 0.0,