MCPcopy Create free account
hub / github.com/ADLab-AutoDrive/BEVFusion / _get_config_module

Function _get_config_module

tests/test_runtime/test_apis.py:32–38  ·  view source on GitHub ↗

Load a configuration as a python module.

(fname)

Source from the content-addressed store, hash-verified

30
31
32def _get_config_module(fname):
33 """Load a configuration as a python module."""
34 from mmcv import Config
35 config_dpath = _get_config_directory()
36 config_fpath = join(config_dpath, fname)
37 config_mod = Config.fromfile(config_fpath)
38 return config_mod
39
40
41def test_convert_SyncBN():

Callers 2

test_convert_SyncBNFunction · 0.70
test_single_gpu_testFunction · 0.70

Calls 1

_get_config_directoryFunction · 0.70

Tested by

no test coverage detected