holoscan::utils::GxfTensorBuffer

Beta
View as Markdown

Buffer wrapping a GXF tensor.

#include <holoscan/utils/holoinfer_utils.hpp>

Inherits from: HoloInfer::Buffer (public)


Constructors

GxfTensorBuffer

holoscan::utils::GxfTensorBuffer::GxfTensorBuffer(
const holoscan::gxf::Entity &entity,
const nvidia::gxf::Handle<nvidia::gxf::Tensor> &tensor
)

Constructor.

Parameters

entity
const holoscan::gxf::Entity &

GXF entity holding the tensor

tensor
const nvidia::gxf::Handle<nvidia::gxf::Tensor> &

GXF tensor


Methods

data

void * holoscan::utils::GxfTensorBuffer::data() override

Buffer class virtual members implemented by this class.

size

size_t holoscan::utils::GxfTensorBuffer::size() const override

get_bytes

size_t holoscan::utils::GxfTensorBuffer::get_bytes() const override

resize

void holoscan::utils::GxfTensorBuffer::resize(
size_t number_of_elements
) override

Member variables

NameTypeDescription
entity_holoscan::gxf::Entity
tensor_nvidia::gxf::Handle< nvidia::gxf::Tensor >