Skip to content

Commit ad582fa

Browse files
committed
Fix: Remove deprecated .path access in Muon optimizer for TF 2.16+ compatibility
1 parent 4a299d3 commit ad582fa

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

keras/src/utils/image_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ def smart_resize(
463463
img = backend_module.image.resize(
464464
img, size=size, interpolation=interpolation, data_format=data_format
465465
)
466-
466+
467467
if isinstance(x, np.ndarray):
468468
return np.array(img)
469469
return img

keras/src/utils/image_utils_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ def test_save_jpg(self, shape, name, file_format, use_explicit_format):
2929
save_img(path, img) # Let it infer from path
3030

3131
self.assertTrue(os.path.exists(path))
32-
3332
# Verify saved image is correctly converted to RGB if needed
3433
loaded_img = load_img(path)
3534
loaded_array = img_to_array(loaded_img)

0 commit comments

Comments
 (0)