8fe645d774d6bc339be1a8aa185f7a29a9a16a95,deeppavlov/core/common/chainer.py,Chainer,save,#Chainer#,180
Before Change
return self.main or self.pipe[-1][-1]
def save(self) -> None:
self.get_main_component().save()
def load(self) -> None:
for in_params, out_params, component in self.train_pipe:
if callable(getattr(component, "load", None)):
After Change
def save(self) -> None:
main_component = self.get_main_component()
if isinstance(main_component, Serializable):
main_component.save()
def load(self) -> None:
for in_params, out_params, component in self.train_pipe:
if callable(getattr(component, "load", None)):
component.load()
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 3
Instances
Project Name: deepmipt/DeepPavlov
Commit Name: 8fe645d774d6bc339be1a8aa185f7a29a9a16a95
Time: 2019-02-18
Author: yoptar@gmail.com
File Name: deeppavlov/core/common/chainer.py
Class Name: Chainer
Method Name: save
Project Name: rusty1s/pytorch_geometric
Commit Name: 5cd8f0e4aa0a74122eed266dbf1f657dc833366b
Time: 2018-02-04
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/datasets/dataset.py
Class Name: Dataset
Method Name: _process
Project Name: descarteslabs/descarteslabs-python
Commit Name: 8b10e08a609c5b23c71e4d0d226e84ada41ab8e9
Time: 2020-12-08
Author: gabe@descarteslabs.com
File Name: descarteslabs/workflows/interactive/layer.py
Class Name: WorkflowsLayer
Method Name: set_imagery
Project Name: apache/incubator-tvm
Commit Name: 2cfbd093be048ca04cbedd36e9c63f76e2e59bce
Time: 2020-09-30
Author: 55580676+mbaret@users.noreply.github.com
File Name: tests/python/contrib/test_ethosn/infrastructure.py
Class Name:
Method Name: assert_lib_hash
Project Name: vatlab/SoS
Commit Name: a1815e085f74f74c4d820eae57575b11390f1b20
Time: 2019-12-02
Author: ben.bog@gmail.com
File Name: src/sos/workflow_executor.py
Class Name: Base_Executor
Method Name: run_as_master