451d74c56d1b2f498e5c9a4856309d7f454b39e5,keras/models.py,Sequential,trainable_weights,#Sequential#,437
Before Change
def trainable_weights(self):
if self.model is None:
self.build()
return self.model.trainable_weights
@property
def non_trainable_weights(self):
if self.model is None:
After Change
@property
def trainable_weights(self):
if not self.trainable:
return []
// Support for legacy behavior
return self._gather_list_attr("trainable_weights")
@property
def non_trainable_weights(self):
// Support for legacy behavior
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: keras-team/keras
Commit Name: 451d74c56d1b2f498e5c9a4856309d7f454b39e5
Time: 2017-02-19
Author: francois.chollet@gmail.com
File Name: keras/models.py
Class Name: Sequential
Method Name: trainable_weights
Project Name: keras-team/keras
Commit Name: 7d2f0b1ba8c1ebd4213f748878953d576626fe84
Time: 2016-08-23
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: 451d74c56d1b2f498e5c9a4856309d7f454b39e5
Time: 2017-02-19
Author: francois.chollet@gmail.com
File Name: keras/models.py
Class Name: Sequential
Method Name: non_trainable_weights