479fc3a978221bb835f7e2781dcef0db66c96e1c,keras/engine/base_layer.py,Layer,trainable_weights,#Layer#,196

Before Change


    def trainable_weights(self):
        trainable = getattr(self, "trainable", True)
        if trainable:
            return self._trainable_weights
        else:
            return []

    @trainable_weights.setter

After Change


    def trainable_weights(self):
        trainable = getattr(self, "trainable", True)
        if trainable:
            trainable_weights = self._trainable_weights[:]
            for l in getattr(self, "_layers", []):
                trainable_weights += l.trainable_weights
            return trainable_weights
        else:
            return []

    @trainable_weights.setter
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 12

Instances


Project Name: keras-team/keras
Commit Name: 479fc3a978221bb835f7e2781dcef0db66c96e1c
Time: 2019-08-29
Author: francois.chollet@gmail.com
File Name: keras/engine/base_layer.py
Class Name: Layer
Method Name: trainable_weights


Project Name: keras-team/keras
Commit Name: 479fc3a978221bb835f7e2781dcef0db66c96e1c
Time: 2019-08-29
Author: francois.chollet@gmail.com
File Name: keras/engine/base_layer.py
Class Name: Layer
Method Name: updates


Project Name: keras-team/keras
Commit Name: 479fc3a978221bb835f7e2781dcef0db66c96e1c
Time: 2019-08-29
Author: francois.chollet@gmail.com
File Name: keras/engine/base_layer.py
Class Name: Layer
Method Name: metrics


Project Name: keras-team/keras
Commit Name: 479fc3a978221bb835f7e2781dcef0db66c96e1c
Time: 2019-08-29
Author: francois.chollet@gmail.com
File Name: keras/engine/base_layer.py
Class Name: Layer
Method Name: losses