MCPcopy Create free account
hub / github.com/HXMap/HRMapNet / custom_multi_gpu_test

Function custom_multi_gpu_test

projects/mmdet3d_plugin/bevformer/apis/test.py:45–113  ·  view source on GitHub ↗

Test model with multiple gpus. This method tests model with multiple gpus and collects the results under two different modes: gpu and cpu modes. By setting 'gpu_collect=True' it encodes results to gpu tensors and use gpu communication for results collection. On cpu mode it saves

(model, data_loader, tmpdir=None, gpu_collect=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

mainFunction · 0.90
_do_evaluateMethod · 0.90

Calls 3

collect_results_gpuFunction · 0.85
collect_results_cpuFunction · 0.85

Tested by

no test coverage detected