MCPcopy Create free account
hub / github.com/alibaba/BladeDISC / restore_args_from_cache

Function restore_args_from_cache

scripts/python/common_setup.py:734–739  ·  view source on GitHub ↗

Restore confs from `disc_conf_file()`

(root, args)

Source from the content-addressed store, hash-verified

732 pickle.dump(args, f)
733
734def restore_args_from_cache(root, args):
735 """Restore confs from `disc_conf_file()`"""
736 with open(disc_conf_file(root), "rb") as f:
737 args_tmp = pickle.load(f)
738 for k, v in args_tmp.__dict__.items():
739 setattr(args, k, v)
740
741
742def parse_args():

Calls 2

loadMethod · 0.80
disc_conf_fileFunction · 0.70