d592b6ca19fb1c9c561862f9a968b52e6e073a27,keras/saving/hdf5_format.py,,load_weights_from_hdf5_group,#Any#Any#,650
Before Change
else:
original_keras_version = "1"
if "backend" in f.attrs:
original_backend = f.attrs["backend"].decode("utf8")
else:
original_backend = None
filtered_layers = []
After Change
if "keras_version" in f.attrs:
original_keras_version = f.attrs["keras_version"]
if hasattr(original_keras_version, "decode"):
original_keras_version = original_keras_version.decode("utf8")
else:
original_keras_version = "1"
if "backend" in f.attrs:
original_backend = f.attrs["backend"]
In pattern: SUPERPATTERN
Frequency: 4
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_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
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: OpenNMT/OpenNMT-tf
Commit Name: f9afa0b3e55d4aa2acfb144b90e613405983fd7c
Time: 2018-10-16
Author: guillaumekln@users.noreply.github.com
File Name: opennmt/utils/misc.py
Class Name:
Method Name: print_bytes