5fadb9c18e3de16cc5633175199f9e9e2c381102,rl_coach/graph_managers/graph_manager.py,GraphManager,restore_checkpoint,#GraphManager#,493
Before Change
variables[new_name] = var
for v in self.variables_to_restore:
self.sess.run(v.assign(variables[v.name.split(":")[0]]) )
def occasionally_save_checkpoint(self):
// only the chief process saves checkpoints
After Change
// TODO: find better way to load checkpoints that were saved with a global network into the online network
if hasattr(self.task_parameters, "checkpoint_restore_dir") and self.task_parameters.checkpoint_restore_dir:
if self.task_parameters.framework_type == Frameworks.tensorflow:
self._restore_checkpoint_tf(self.task_parameters.checkpoint_restore_dir)
elif self.task_parameters.framework_type == Frameworks.mxnet:
// TODO implement checkpoint restore
pass
else:
raise ValueError("Invalid framework {}".format(self.task_parameters.framework_type))
def occasionally_save_checkpoint(self):
// only the chief process saves checkpoints
if self.task_parameters.checkpoint_save_secs \
and time.time() - self.last_checkpoint_saving_time >= self.task_parameters.checkpoint_save_secs \
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: NervanaSystems/coach
Commit Name: 5fadb9c18e3de16cc5633175199f9e9e2c381102
Time: 2018-11-07
Author: sina.beh@gmail.com
File Name: rl_coach/graph_managers/graph_manager.py
Class Name: GraphManager
Method Name: restore_checkpoint
Project Name: GPflow/GPflow
Commit Name: 0741f86561249b49db3f6cf6068d21d95c8d9330
Time: 2017-11-20
Author: art.art.v@gmail.com
File Name: gpflow/params/parameterized.py
Class Name: Parameterized
Method Name: anchor
Project Name: stellargraph/stellargraph
Commit Name: f86781c68cac46a283555471b3d7ca32ca16ccdf
Time: 2020-05-11
Author: Huon.Wilson@data61.csiro.au
File Name: stellargraph/core/convert.py
Class Name: ColumnarConverter
Method Name: _convert_single