36ac91f0576b2295df1f3f8b23c305d69698a0ff,keras/models.py,Sequential,non_trainable_weights,#Sequential#,464

Before Change


    @property
    def non_trainable_weights(self):
        // support for legacy behavior
        weights = self._gather_list_attr("non_trainable_weights")
        if not self.trainable:
            trainable_weights = self._gather_list_attr("trainable_weights")
            return trainable_weights + weights
        return weights

    @property
    def updates(self):

After Change



    @property
    def non_trainable_weights(self):
        if self.model is None:
            self.build()
        return self.model.non_trainable_weights

    @property
    def updates(self):
        if self.model is None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: keras-team/keras
Commit Name: 36ac91f0576b2295df1f3f8b23c305d69698a0ff
Time: 2017-02-15
Author: francois.chollet@gmail.com
File Name: keras/models.py
Class Name: Sequential
Method Name: non_trainable_weights


Project Name: keras-team/keras
Commit Name: 36ac91f0576b2295df1f3f8b23c305d69698a0ff
Time: 2017-02-15
Author: francois.chollet@gmail.com
File Name: keras/models.py
Class Name: Sequential
Method Name: trainable_weights


Project Name: keras-team/keras
Commit Name: 36ac91f0576b2295df1f3f8b23c305d69698a0ff
Time: 2017-02-15
Author: francois.chollet@gmail.com
File Name: keras/models.py
Class Name: Sequential
Method Name: non_trainable_weights


Project Name: keras-team/keras
Commit Name: 36ac91f0576b2295df1f3f8b23c305d69698a0ff
Time: 2017-02-15
Author: francois.chollet@gmail.com
File Name: keras/models.py
Class Name: Sequential
Method Name: regularizers