From bbcd6eee8a8877e0c226cd2fd862ccfb6599f278 Mon Sep 17 00:00:00 2001 From: Francois Chollet Date: Wed, 19 Apr 2023 10:29:38 -0700 Subject: [PATCH] Fix weight constraint test. --- keras_core/constraints/constraints_test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/keras_core/constraints/constraints_test.py b/keras_core/constraints/constraints_test.py index 786be228a..11f0a2f80 100644 --- a/keras_core/constraints/constraints_test.py +++ b/keras_core/constraints/constraints_test.py @@ -29,6 +29,7 @@ class ConstraintsTest(testing.TestCase): def test_non_neg(self): constraint_fn = constraints.NonNeg() output = constraint_fn(get_example_array()) + output = np.array(output) self.assertTrue((np.min(output, axis=1) >= 0.0).all()) def test_unit_norm(self):