MCPcopy
hub / github.com/microsoft/Swin-Transformer / get_config

Function get_config

config.py:352–359  ·  view source on GitHub ↗

Get a yacs CfgNode object with default values.

(args)

Source from the content-addressed store, hash-verified

350
351
352def get_config(args):
353 """Get a yacs CfgNode object with default values."""
354 # Return a clone so that the defaults will not be altered
355 # This is for the "local variable" use pattern
356 config = _C.clone()
357 update_config(config, args)
358
359 return config

Callers 4

parse_optionFunction · 0.90
parse_optionFunction · 0.90
parse_optionFunction · 0.90
parse_optionFunction · 0.90

Calls 1

update_configFunction · 0.85

Tested by

no test coverage detected