MCPcopy Create free account
hub / github.com/chenhaoxing/HDNet / get_cfg_defaults

Function get_cfg_defaults

util/config.py:42–46  ·  view source on GitHub ↗

Get a yacs CfgNode object with default values for my_project.

()

Source from the content-addressed store, hash-verified

40
41
42def get_cfg_defaults():
43 """Get a yacs CfgNode object with default values for my_project."""
44 # Return a clone so that the defaults will not be altered
45 # This is for the "local variable" use pattern
46 return cfg.clone()
47
48def update_cfg(cfg, cfg_file):
49 cfg.merge_from_file(cfg_file)

Callers 1

parse_argsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected