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

Function save_args_to_cache

scripts/python/common_setup.py:729–732  ·  view source on GitHub ↗

Save confs to `disc_conf_file()`

(root, args)

Source from the content-addressed store, hash-verified

727 return os.path.join(root, "scripts", "ci", ".disc_conf")
728
729def save_args_to_cache(root, args):
730 """Save confs to `disc_conf_file()`"""
731 with open(disc_conf_file(root), "wb") as f:
732 pickle.dump(args, f)
733
734def restore_args_from_cache(root, args):
735 """Restore confs from `disc_conf_file()`"""

Callers 1

common_setup.pyFile · 0.70

Calls 2

dumpMethod · 0.80
disc_conf_fileFunction · 0.70

Tested by

no test coverage detected