parameters: (dets, thresh, force_cpu=False)
docstring: Dispatch to either CPU or GPU NMS implementations.
docstring_summary: Dispatch to either CPU or GPU NMS implementations.
docstring_tokens: Dispatch to either CPU or GPU NMS implementations .
function: def nms(dets, thresh, force_cpu=False):
      """Dispatch to either CPU or GPU NMS implementations."""
  
      if dets.shape[0] == 0:
          return []
      if cfg.USE_GPU_NMS and not force_cpu:
          return gpu_nms(dets, thresh, device_id=cfg.GPU_ID)
      else:
          return cpu_nms(dets, thresh)
function_tokens: def nms ( dets , thresh , force_cpu = False ) : if dets . shape [ 0 ] == 0 : return [ ] if cfg . USE_GPU_NMS and not force_cpu : return gpu_nms ( dets , thresh , device_id = cfg . GPU_ID ) else : return cpu_nms ( dets , thresh )