d592b6ca19fb1c9c561862f9a968b52e6e073a27,keras/saving/hdf5_format.py,,load_model_from_hdf5,#Any#Any#Any#,139
Before Change
logging.warning("No training configuration found in the save file, so "
"the model was *not* compiled. Compile it manually.")
return model
training_config = json_utils.decode(training_config.decode("utf-8"))
// Compile model.
model.compile(**saving_utils.compile_args_from_training_config(
training_config, custom_objects))
After Change
model_config = f.attrs.get("model_config")
if model_config is None:
raise ValueError("No model found in config file.")
if hasattr(model_config, "decode"):
model_config = model_config.decode("utf-8")
model_config = json_utils.decode(model_config)
model = model_config_lib.model_from_config(model_config,
custom_objects=custom_objects)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: keras-team/keras
Commit Name: d592b6ca19fb1c9c561862f9a968b52e6e073a27
Time: 2020-12-11
Author: scottzhu@google.com
File Name: keras/saving/hdf5_format.py
Class Name:
Method Name: load_model_from_hdf5
Project Name: keras-team/keras
Commit Name: d592b6ca19fb1c9c561862f9a968b52e6e073a27
Time: 2020-12-11
Author: scottzhu@google.com
File Name: keras/saving/hdf5_format.py
Class Name:
Method Name: load_weights_from_hdf5_group
Project Name: keras-team/keras
Commit Name: d592b6ca19fb1c9c561862f9a968b52e6e073a27
Time: 2020-12-11
Author: scottzhu@google.com
File Name: keras/saving/hdf5_format.py
Class Name:
Method Name: load_weights_from_hdf5_group_by_name