Skip to content

Commit

Permalink
use instead of when converting tensors to numpy (keras-team#575)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampathweb authored Jul 21, 2023
1 parent 4be412e commit b9dbb3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras_core/initializers/random_initializers_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b9dbb3c

Please sign in to comment.