python_vali.PySurfaceDownloader¶
- class python_vali.PySurfaceDownloader¶
This class is used to copy Surface to numpy ndarray using CUDA DtoH memcpy.
- __init__(*args, **kwargs)¶
Overloaded function.
__init__(self: python_vali._python_vali.PySurfaceDownloader, gpu_id: int) -> None
Constructor method.
- param gpu_id:
what GPU does Surface belong to
__init__(self: python_vali._python_vali.PySurfaceDownloader, stream: int) -> None
Constructor method.
- param stream:
CUDA stream to use for HtoD memcopy
Methods
Run
(self, src, dst)Perform DtoH memcpy.
__init__
(*args, **kwargs)Overloaded function.
- Run(self: python_vali._python_vali.PySurfaceDownloader, src: VPF::Surface, dst: numpy.ndarray) Tuple[bool, python_vali._python_vali.TaskExecInfo] ¶
Perform DtoH memcpy.
- Parameters:
src (Surface) – input Surface
dst (numpy.ndarray) – output numpy array
- Returns:
tuple containing: success (Bool) True in case of success, False otherwise. info (TaskExecInfo) task execution information.
- Return type:
tuple