4135aeebc46a29487757bb97c51f213d17b529c0,keras/utils/generic_utils.py,,deserialize_keras_object,#Any#Any#Any#Any#,115
Before Change
": " + class_name)
if hasattr(cls, "from_config"):
custom_objects = custom_objects or {}
if has_arg(cls.from_config, "custom_objects"):
return cls.from_config(config["config"],
custom_objects=dict(list(_GLOBAL_CUSTOM_OBJECTS.items()) +
list(custom_objects.items())))
After Change
raise ValueError("Unknown " + printable_module_name +
": " + class_name)
if hasattr(cls, "from_config"):
arg_spec = inspect.getargspec(cls.from_config)
custom_objects = custom_objects or {}
if "custom_objects" in arg_spec.args:
return cls.from_config(config["config"],
custom_objects=dict(list(_GLOBAL_CUSTOM_OBJECTS.items()) +
list(custom_objects.items())))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: keras-team/keras
Commit Name: 4135aeebc46a29487757bb97c51f213d17b529c0
Time: 2017-06-16
Author: francois.chollet@gmail.com
File Name: keras/utils/generic_utils.py
Class Name:
Method Name: deserialize_keras_object
Project Name: keras-team/keras
Commit Name: 4135aeebc46a29487757bb97c51f213d17b529c0
Time: 2017-06-16
Author: francois.chollet@gmail.com
File Name: keras/legacy/layers.py
Class Name: Merge
Method Name: call
Project Name: keras-team/keras
Commit Name: 4135aeebc46a29487757bb97c51f213d17b529c0
Time: 2017-06-16
Author: francois.chollet@gmail.com
File Name: keras/layers/core.py
Class Name: Lambda
Method Name: call