ced84c4b42d9186842e4cad6c11b0c8f2c18439b,keras/layers/wrappers.py,Bidirectional,call,#Bidirectional#Any#Any#Any#,273

Before Change



    def call(self, inputs, training=None, mask=None):
        kwargs = {}
        func_args = inspect.getargspec(self.layer.call).args
        if "training" in func_args:
            kwargs["training"] = training
        if "mask" in func_args:
            kwargs["mask"] = mask

        y = self.forward_layer.call(inputs, **kwargs)

After Change


        kwargs = {}
        if has_arg(self.layer.call, "training"):
            kwargs["training"] = training
        if has_arg(self.layer.call, "mask"):
            kwargs["mask"] = mask

        y = self.forward_layer.call(inputs, **kwargs)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: keras-team/keras
Commit Name: ced84c4b42d9186842e4cad6c11b0c8f2c18439b
Time: 2017-06-16
Author: chris.kerr@athion.de
File Name: keras/layers/wrappers.py
Class Name: Bidirectional
Method Name: call


Project Name: keras-team/keras
Commit Name: ced84c4b42d9186842e4cad6c11b0c8f2c18439b
Time: 2017-06-16
Author: chris.kerr@athion.de
File Name: keras/wrappers/scikit_learn.py
Class Name: BaseWrapper
Method Name: filter_sk_params


Project Name: keras-team/keras
Commit Name: 04a20177cf332004a291cee626c20a0262427796
Time: 2017-06-21
Author: chris.kerr@athion.de
File Name: keras/wrappers/scikit_learn.py
Class Name: BaseWrapper
Method Name: filter_sk_params


Project Name: keras-team/keras
Commit Name: 04a20177cf332004a291cee626c20a0262427796
Time: 2017-06-21
Author: chris.kerr@athion.de
File Name: keras/layers/wrappers.py
Class Name: Bidirectional
Method Name: call