python_vali.PyFrameUploader

class python_vali.PyFrameUploader

This class is used to upload numpy array to Surface using CUDA HtoD memcpy.

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: python_vali._python_vali.PyFrameUploader, gpu_id: int) -> None

    param gpu_id:

    what GPU to use for upload.

  2. __init__(self: python_vali._python_vali.PyFrameUploader, stream: int) -> None

    param stream:

    CUDA stream to use for upload

Methods

Run(self, src, dst)

Blocking HtoD CUDA memcpy.

__init__(*args, **kwargs)

Overloaded function.

Run(self: python_vali._python_vali.PyFrameUploader, src: numpy.ndarray, dst: VPF::Surface) Tuple[bool, python_vali._python_vali.TaskExecInfo]

Blocking HtoD CUDA memcpy.

Parameters:
  • src (numpy.ndarray) – input numpy array

  • dst (Surface) – output surface

Returns:

tuple containing: success (Bool) True in case of success, False otherwise. info (TaskExecInfo) task execution information.

Return type:

tuple