From a9e53050cc5e5ab80e5ce71232334ef362ef1243 Mon Sep 17 00:00:00 2001 From: root <12272008@bjtu.edu.cn> Date: Thu, 29 Apr 2021 06:46:57 +0000 Subject: [PATCH] fix ci bug --- .../paddle/fluid/tests/unittests/test_cross_entropy_loss.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/test_cross_entropy_loss.py b/python/paddle/fluid/tests/unittests/test_cross_entropy_loss.py index 01710d579a6..731e4b54e22 100644 --- a/python/paddle/fluid/tests/unittests/test_cross_entropy_loss.py +++ b/python/paddle/fluid/tests/unittests/test_cross_entropy_loss.py @@ -1378,7 +1378,7 @@ class TestCrossEntropyFAPIError(unittest.TestCase): input=input_data, label=label_data, weight=weight_data, - ignore_index=0) + ignore_index=255) self.assertRaises(ValueError, test_LabelValue) @@ -1392,7 +1392,7 @@ class TestCrossEntropyFAPIError(unittest.TestCase): input=input_data, label=label_data, weight=weight_data, - ignore_index=0) + ignore_index=-1) self.assertRaises(ValueError, test_LabelValueNeg) -- GitLab