parameters: (resources, index, co=None, gpus=None)
return_statement: return index
docstring: builds the C++ vectors for the GPU indices and the
      resources. Handles the case where the resources are assigned to
      the list of GPUs
docstring_summary: builds the C++ vectors for the GPU indices and the
      resources. Handles the case where the resources are assigned to
      the list of GPUs
docstring_tokens: builds the C ++ vectors for the GPU indices and the resources . Handles the case where the resources are assigned to the list of GPUs
function: def index_cpu_to_gpu_multiple_py(resources, index, co=None, gpus=None):
      """ builds the C++ vectors for the GPU indices and the
      resources. Handles the case where the resources are assigned to
      the list of GPUs """
      if gpus is None:
          gpus = range(len(resources))
      vres = GpuResourcesVector()
      vdev = Int32Vector()
      for i, res in zip(gpus, resources):
          vdev.push_back(i)
          vres.push_back(res)
      index = index_cpu_to_gpu_multiple(vres, vdev, index, co)
      return index
function_tokens: def index_cpu_to_gpu_multiple_py ( resources , index , co = None , gpus = None ) : if gpus is None : gpus = range ( len ( resources ) ) vres = GpuResourcesVector ( ) vdev = Int32Vector ( ) for i , res in zip ( gpus , resources ) : vdev . push_back ( i ) vres . push_back ( res ) index = index_cpu_to_gpu_multiple ( vres , vdev , index , co ) return index