Skip to content

Commit

Permalink
Minor docstring fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fchollet committed Oct 18, 2024
1 parent b3e0b46 commit 132223f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions keras/src/saving/saving_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,9 +511,9 @@ def _load_model_from_fileobj(fileobj, custom_objects, compile, safe_mode):


def save_weights_only(model, filepath, objects_to_skip=None):
"""Save only the weights of a model to a target filepath (.weights.h5).
Note: only supports h5 for now.
"""Save only the weights of a model to a target filepath.
Supports both `.weights.h5` and `.keras`.
"""
filepath = str(filepath)
tmp_dir = None
Expand Down

0 comments on commit 132223f

Please sign in to comment.