7b460340070c810de6d0f6288f6c8900c93e6cfa,torchsample/modules/super_module.py,SuperModule,set_optimizer,#SuperModule#Any#,49
Before Change
self._loss = loss
def set_optimizer(self, optimizer, **kwargs):
self._optimizer = optimizer(self.parameters(), **kwargs)
def set_regularizers(self, regularizers):
self._regularizers = regularizers
After Change
parameters = kwargs["parameters"]
else:
parameters = self.parameters()
self._optimizer = optimizer(parameters, **kwargs)
def set_regularizers(self, regularizers):
self._regularizers = regularizers
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: ncullen93/torchsample
Commit Name: 7b460340070c810de6d0f6288f6c8900c93e6cfa
Time: 2017-04-22
Author: ncullen@Nicks-MacBook-Pro.local
File Name: torchsample/modules/super_module.py
Class Name: SuperModule
Method Name: set_optimizer
Project Name: tensorflow/lattice
Commit Name: 2fd542242f2dcf1820b616461d2801102c36957e
Time: 2018-07-30
Author: no-reply@google.com
File Name: tensorflow_lattice/python/estimators/calibrated.py
Class Name:
Method Name: _get_optimizer
Project Name: explosion/thinc
Commit Name: f2754e0656d8cebe1f785f6af100e4ade241a7f8
Time: 2020-01-14
Author: honnibal+gh@gmail.com
File Name: thinc/model.py
Class Name: Model
Method Name: finish_update