AsyncGpuResult#
- class nvmolkit.types.AsyncGpuResult(obj)#
Handle to a GPU result.
Populates the
__cuda_array_interface__attribute which can be consumed by other libraries. Note that this result is async, and the data cannot be accessed without a sync, such astorch.cuda.synchronize().- __init__(obj)#
Internal construction of the AsyncGpuResult object.
- property device#
Return the device of the underlying data.
- torch()#
Return the underlying data as a torch tensor. This is an asynchronous operation.
- numpy()#
Return the underlying data as a numpy array. This is a blocking operation.