a637960fab61b66848a36e6a5caf0204c155af01,keras/engine/sequential.py,Sequential,add,#Sequential#Any#,94

Before Change


                            "Found: " + str(layer))
        if not self.outputs:
            // First layer in model: check that it is an input layer.
            if not isinstance(layer, (InputLayer, legacy_layers.Merge)):
                // Create an input layer.
                // First, we need to infer its expected input shape and dtype.
                if isinstance(layer, (Model, Sequential)):

After Change


                                "For multi-output layers, "
                                "use the functional API.")
            self.outputs = [output_tensor]
        if self.inputs:
            self.build()
        else:
            self._layers.append(layer)

    def pop(self):
        Removes the last layer in the model.

        // Raises
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: keras-team/keras
Commit Name: a637960fab61b66848a36e6a5caf0204c155af01
Time: 2018-05-01
Author: francois.chollet@gmail.com
File Name: keras/engine/sequential.py
Class Name: Sequential
Method Name: add


Project Name: tensorlayer/tensorlayer
Commit Name: 48ca51e099b5b492aba7b260f3895a97aca36e3a
Time: 2019-03-15
Author: 37874862+warshallrho@users.noreply.github.com
File Name: tensorlayer/layers/convolution/expert_conv.py
Class Name: Conv1dLayer
Method Name: __init__


Project Name: tensorlayer/tensorlayer
Commit Name: 48ca51e099b5b492aba7b260f3895a97aca36e3a
Time: 2019-03-15
Author: 37874862+warshallrho@users.noreply.github.com
File Name: tensorlayer/layers/convolution/expert_conv.py
Class Name: Conv3dLayer
Method Name: __init__