NVIDIA DeepStream SDK API Reference

8.0 Release
ds3d::v2xinfer::TensorData Struct Reference

Detailed Description

Public Member Functions

bool empty () const
 
void reference (void *data, size_t bytes, DataType dtype, bool device)
 
void free ()
 
virtual ~TensorData ()
 

Static Public Member Functions

static TensorDatareference_new (void *data, size_t bytes, DataType dtype, bool device)
 
static TensorDatacreate (size_t bytes, DataType dtype, bool device)
 

Data Fields

void * data = nullptr
 
DataType dtype = DataType::None
 
size_t bytes = 0
 
bool device = true
 
bool owner = false
 

Constructor & Destructor Documentation

◆ ~TensorData()

virtual ds3d::v2xinfer::TensorData::~TensorData ( )
virtual

Member Function Documentation

◆ create()

static TensorData* ds3d::v2xinfer::TensorData::create ( size_t  bytes,
DataType  dtype,
bool  device 
)
static

◆ empty()

bool ds3d::v2xinfer::TensorData::empty ( ) const
inline

◆ free()

void ds3d::v2xinfer::TensorData::free ( )

◆ reference()

void ds3d::v2xinfer::TensorData::reference ( void *  data,
size_t  bytes,
DataType  dtype,
bool  device 
)

◆ reference_new()

static TensorData* ds3d::v2xinfer::TensorData::reference_new ( void *  data,
size_t  bytes,
DataType  dtype,
bool  device 
)
static

Field Documentation

◆ bytes

size_t ds3d::v2xinfer::TensorData::bytes = 0

◆ data

void* ds3d::v2xinfer::TensorData::data = nullptr

◆ device

bool ds3d::v2xinfer::TensorData::device = true

◆ dtype

◆ owner

bool ds3d::v2xinfer::TensorData::owner = false

The documentation for this struct was generated from the following file: