13986978d4545aa429a7fc233d8e39718d52e255,studio/keyvalue_provider.py,KeyValueProvider,checkpoint_experiment,#KeyValueProvider#Any#Any#,223
Before Change
self._delete(self._get_experiments_keybase() + experiment_key)
def checkpoint_experiment(self, experiment, blocking=False):
if not isinstance(experiment, six.string_types):
key = experiment.key
else:
key = experiment
self.logger.debug(("checkpointing {}".format(
self._get_experiments_keybase() + key)))
experiment_dict = self._get(self._get_experiments_keybase() + key)
After Change
experiment_dict = self._get(self._get_experiments_keybase() + key)
workers = []
with ThreadPoolExecutor(max_workers=8) as executor:
for _, art in six.iteritems(experiment.artifacts):
if art["mutable"] and art.get("local"):
workers.append(executor.submit(self.store.put_artifact, art))
wait(workers)
for worker in workers:
try:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: studioml/studio
Commit Name: 13986978d4545aa429a7fc233d8e39718d52e255
Time: 2020-08-11
Author: andrei.denissov@cognizant.com
File Name: studio/keyvalue_provider.py
Class Name: KeyValueProvider
Method Name: checkpoint_experiment
Project Name: cornellius-gp/gpytorch
Commit Name: 47a96974ab2d75fc20c76a6d6da20976ecad32bb
Time: 2017-10-02
Author: gpleiss@gmail.com
File Name: gpytorch/random_variables/random_variable.py
Class Name: RandomVariable
Method Name: cuda
Project Name: cornellius-gp/gpytorch
Commit Name: 47a96974ab2d75fc20c76a6d6da20976ecad32bb
Time: 2017-10-02
Author: gpleiss@gmail.com
File Name: gpytorch/random_variables/random_variable.py
Class Name: RandomVariable
Method Name: cpu