Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX BUG in load_weights_from_hdf5_group_by_name" legacy_h5_format.py #20537

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion keras/src/legacy/saving/legacy_h5_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ def load_weights_from_hdf5_group_by_name(f, model, skip_mismatch=False):
)

if "top_level_model_weights" in f:
symbolic_weights = model.trainable_weights + model.non_trainable_weights
symbolic_weights = model._trainable_variables + model._non_trainable_variables
weight_values = load_subset_weights_from_hdf5_group(
f["top_level_model_weights"]
)
Expand Down
Loading