NVIDIA Holoscan SDK v1.0.3
Holoscan 1.0.3

Class DataBuffer

class DataBuffer

HoloInfer DataBuffer Class. Holds CPU based buffer as float32 vector and device buffer as a shared pointer.

Public Functions

explicit DataBuffer(holoinfer_datatype data_type = holoinfer_datatype::h_Float32, int device_id = 0)

Constructor.

inline holoinfer_datatype get_datatype() const

inline int get_device() const

Public Members

std::shared_ptr<DeviceBuffer> device_buffer

HostBuffer host_buffer

Previous Class OperatorWrapperFragment
Next Class DataProcessor
© Copyright 2022-2023, NVIDIA. Last updated on Apr 19, 2024.