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

Function test_convert_SyncBN

tests/test_runtime/test_apis.py:41–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39
40
41def test_convert_SyncBN():
42 cfg = _get_config_module(
43 'pointpillars/hv_pointpillars_fpn_sbn-all_4x8_2x_nus-3d.py')
44 model_cfg = cfg.model
45 convert_SyncBN(model_cfg)
46 assert model_cfg['pts_voxel_encoder']['norm_cfg']['type'] == 'BN1d'
47 assert model_cfg['pts_backbone']['norm_cfg']['type'] == 'BN2d'
48 assert model_cfg['pts_neck']['norm_cfg']['type'] == 'BN2d'
49
50
51def test_show_result_meshlab():

Callers

nothing calls this directly

Calls 2

convert_SyncBNFunction · 0.90
_get_config_moduleFunction · 0.70

Tested by

no test coverage detected