MCPcopy Create free account
hub / github.com/PeizeSun/SparseR-CNN / setup

Function setup

tools/analyze_model.py:24–31  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

22
23
24def setup(args):
25 cfg = get_cfg()
26 cfg.merge_from_file(args.config_file)
27 cfg.DATALOADER.NUM_WORKERS = 0
28 cfg.merge_from_list(args.opts)
29 cfg.freeze()
30 setup_logger()
31 return cfg
32
33
34def do_flop(cfg):

Callers 1

analyze_model.pyFile · 0.70

Calls 4

get_cfgFunction · 0.90
setup_loggerFunction · 0.90
merge_from_fileMethod · 0.80
freezeMethod · 0.45

Tested by

no test coverage detected