Skip to content

Commit

Permalink
fix: .numpy() bug
Browse files Browse the repository at this point in the history
AttributeError: 'numpy.ndarray' object has no attribute 'numpy'
  • Loading branch information
awsaf49 committed Oct 23, 2023
1 parent 8146994 commit 305ef2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keras/ops/image_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ def test_pad_image(
tuple(padded_image.shape), tuple(ref_padded_image.shape)
)
self.assertAllClose(
padded_image.numpy(),
backend.convert_to_numpy(ref_padded_image),
ref_padded_image.numpy(),
backend.convert_to_numpy(padded_image),
atol=1e-5,
)

0 comments on commit 305ef2d

Please sign in to comment.