From b9dbb3ca2774fb19b3da9da056265c65dea6dc32 Mon Sep 17 00:00:00 2001 From: Ramesh Sampath <1437573+sampathweb@users.noreply.github.com> Date: Fri, 21 Jul 2023 05:46:46 -0500 Subject: [PATCH] use instead of when converting tensors to numpy (#575) --- keras_core/initializers/random_initializers_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keras_core/initializers/random_initializers_test.py b/keras_core/initializers/random_initializers_test.py index 40c86154be8b..4dc769939334 100644 --- a/keras_core/initializers/random_initializers_test.py +++ b/keras_core/initializers/random_initializers_test.py @@ -133,7 +133,7 @@ def test_orthogonal_initializer(self): self.assertEqual(initializer.gain, gain) self.assertEqual(values.shape, shape) - array = np.array(values) + array = backend.convert_to_numpy(values) # Making sure that the columns have gain * unit norm value for column in array.T: self.assertAlmostEqual(np.linalg.norm(column), gain * 1.0)