Skip to content

Commit

Permalink
fix: Torch MPS backend failing test (#20709)
Browse files Browse the repository at this point in the history
  • Loading branch information
kas2020-commits authored Jan 2, 2025
1 parent 59d3025 commit 476a664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras/src/utils/backend_utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class BackendUtilsTest(testing.TestCase):
)
def test_dynamic_backend(self, name):
dynamic_backend = backend_utils.DynamicBackend()
x = np.random.uniform(size=[1, 2, 3])
x = np.random.uniform(size=[1, 2, 3]).astype("float32")

if name == "numpy":
dynamic_backend.set_backend(name)
Expand Down

0 comments on commit 476a664

Please sign in to comment.