MCPcopy Create free account
hub / github.com/SwinTransformer/Transformer-SSL / get_config

Function get_config

config.py:257–264  ·  view source on GitHub ↗

Get a yacs CfgNode object with default values.

(args)

Source from the content-addressed store, hash-verified

255
256
257def get_config(args):
258 """Get a yacs CfgNode object with default values."""
259 # Return a clone so that the defaults will not be altered
260 # This is for the "local variable" use pattern
261 config = _C.clone()
262 update_config(config, args)
263
264 return config

Callers 3

parse_optionFunction · 0.90
parse_optionFunction · 0.90
parse_optionFunction · 0.90

Calls 1

update_configFunction · 0.85

Tested by

no test coverage detected