69813de15a040584756c5dbfa61468f20c97f8af,lib/model/normalization/normalization_common.py,,,#,488
Before Change
// Update normalization into Keras custom objects
for name, obj in inspect.getmembers(sys.modules[__name__]):
if inspect.isclass(obj) and obj.__module__ == __name__:
get_custom_objects().update({name: obj})
After Change
from lib.utils import get_backend
if get_backend() == "amd":
from keras.backend import normalize_data_format // pylint:disable=ungrouped-imports
else:
from tensorflow.python.keras.utils.conv_utils import normalize_data_format
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: deepfakes/faceswap
Commit Name: 69813de15a040584756c5dbfa61468f20c97f8af
Time: 2021-02-17
Author: 36920800+torzdf@users.noreply.github.com
File Name: lib/model/normalization/normalization_common.py
Class Name:
Method Name:
Project Name: hyperspy/hyperspy
Commit Name: 3d6eaf353b92d1ae2bfd0575f2061230aab1b94f
Time: 2017-02-27
Author: frandelapena@gmail.com
File Name: hyperspy/tests/drawing/test_utils.py
Class Name:
Method Name: test_create_figure
Project Name: arogozhnikov/einops
Commit Name: bf5f40900393ebb2c22ec8683221eb86d63e616a
Time: 2018-09-28
Author: iamfullofspam@gmail.com
File Name: einops.py
Class Name:
Method Name: parse_shape