6d5ce13c180a1680f6bb2a87e88b51440584cf90,elfi/model/elfi_model.py,ElfiModel,generate,#ElfiModel#Any#Any#Any#,91
Before Change
if with_values is not None:
context.output_supply.update(with_values)
return client.BatchClient(source_net=self.source_net, outputs=outputs,
context=context).compute_batch()
def get_reference(self, name):
cls = self.get_node(name)["class"]
return cls.reference(name, self)
After Change
client = elfi.client.get()
compiled_net = client.compile(self.source_net, outputs)
loaded_net = client.load_data(compiled_net, context, batch_index=0)
return client.compute(loaded_net)
def get_reference(self, name):
cls = self.get_node(name)["class"]
return cls.reference(name, self)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: elfi-dev/elfi
Commit Name: 6d5ce13c180a1680f6bb2a87e88b51440584cf90
Time: 2017-03-22
Author: jarno.lintusaari@gmail.com
File Name: elfi/model/elfi_model.py
Class Name: ElfiModel
Method Name: generate
Project Name: biolab/orange3
Commit Name: 9e30290fe84353a36c064152f59a1153dfa624f2
Time: 2016-02-04
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/data/owfile.py
Class Name: OWFile
Method Name: reload
Project Name: mozilla/TTS
Commit Name: d38872a4d0b4d902d6ce3979560d0c4f4258ac82
Time: 2018-12-17
Author: egolge@mozilla.com
File Name: datasets/TTSDataset.py
Class Name: MyDataset
Method Name: __getitem__
Project Name: mozilla/TTS
Commit Name: 2f0e9545a368cd54dddf9faeecb494439913cf5a
Time: 2018-12-28
Author: egolge@mozilla.com
File Name: datasets/TTSDataset.py
Class Name: MyDataset
Method Name: __getitem__