479fc3a978221bb835f7e2781dcef0db66c96e1c,keras/engine/base_layer.py,Layer,losses,#Layer#,178

Before Change



    @property
    def losses(self):
        return self._losses

    @property
    def updates(self):
        if not self.trainable and not self.stateful:

After Change



    @property
    def losses(self):
        losses = self._losses[:]
        for l in getattr(self, "_layers", []):
            losses += l.losses
        return losses

    @property
    def updates(self):
        if not self.trainable and not self.stateful:
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: losses


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: 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: trainable_weights