4135aeebc46a29487757bb97c51f213d17b529c0,keras/legacy/layers.py,Merge,call,#Merge#Any#Any#,192

Before Change


        // Case: "mode" is a lambda or function.
        if callable(self.mode):
            arguments = self.arguments
            if has_arg(self.mode, "mask"):
                arguments["mask"] = mask
            return self.mode(inputs, **arguments)

After Change


        // Case: "mode" is a lambda or function.
        if callable(self.mode):
            arguments = self.arguments
            arg_spec = inspect.getargspec(self.mode)
            if "mask" in arg_spec.args:
                arguments["mask"] = mask
            return self.mode(inputs, **arguments)
Italian Trulli
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/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


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