Skip to content

Commit

Permalink
Fix small bug in model.save_weights (#19545)
Browse files Browse the repository at this point in the history
  • Loading branch information
uschmidt83 authored Apr 18, 2024
1 parent 65d0e09 commit 1135431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras/src/models/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def save_weights(self, filepath, overwrite=True):
at the target location, or instead ask the user
via an interactive prompt.
"""
return saving_api.save_weights(self, filepath, overwrite=True)
return saving_api.save_weights(self, filepath, overwrite=overwrite)

@traceback_utils.filter_traceback
def load_weights(self, filepath, skip_mismatch=False, **kwargs):
Expand Down

0 comments on commit 1135431

Please sign in to comment.