b49758be2bc75c281ce937ffa40fb13228dc38d5,dlpy/layers.py,Layer,__call__,#Layer#Any#,134

Before Change


        layer_type = self.__class__.__name__
        if isinstance(inputs, list) and len(inputs) > 1:
            if layer_type not in ["Concat", "Res", "Scale", "Dense"]:
                raise DLPyError("The input of {layer_type} should have only one layer.")
        else:
            inputs = [inputs]
        self.src_layers = self.src_layers or []
        self.src_layers = self.src_layers + inputs

After Change


        layer_type = self.__class__.__name__
        if isinstance(inputs, list):
            if len(inputs) > 1 and layer_type not in ["Concat", "Res", "Scale", "Dense"]:
                raise DLPyError("The input of {} should have only one layer.".format(layer_type))
        else:
            inputs = [inputs]
        self.src_layers = self.src_layers or []
        self.src_layers = self.src_layers + inputs
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: sassoftware/python-dlpy
Commit Name: b49758be2bc75c281ce937ffa40fb13228dc38d5
Time: 2019-01-09
Author: 34170572+wenyushi@users.noreply.github.com
File Name: dlpy/layers.py
Class Name: Layer
Method Name: __call__


Project Name: sassoftware/python-dlpy
Commit Name: f4001171bc0e65b736ceb55579fbacfcc64c4e85
Time: 2019-04-24
Author: wenyu.shi@sas.com
File Name: dlpy/network.py
Class Name: Network
Method Name: __init__


Project Name: sassoftware/python-dlpy
Commit Name: 1a9adc39fa073de40aa19cf134a35bb55f2d1658
Time: 2019-04-24
Author: wenyu.shi@sas.com
File Name: dlpy/network.py
Class Name: Network
Method Name: __init__