Skip to content

Commit 132223f

Browse files
committed
Minor docstring fix
1 parent b3e0b46 commit 132223f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

keras/src/saving/saving_lib.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,9 +511,9 @@ def _load_model_from_fileobj(fileobj, custom_objects, compile, safe_mode):
511511

512512

513513
def save_weights_only(model, filepath, objects_to_skip=None):
514-
"""Save only the weights of a model to a target filepath (.weights.h5).
515-
516-
Note: only supports h5 for now.
514+
"""Save only the weights of a model to a target filepath.
515+
516+
Supports both `.weights.h5` and `.keras`.
517517
"""
518518
filepath = str(filepath)
519519
tmp_dir = None

0 commit comments

Comments
 (0)