|
|
NVIDIA DeepStream SDK API Reference
|
9.2 Release
|
NvDsTensorMemMapFlags
Specifies mapping types for NvDsTensor.
struct NvDsTensor NvDsTensor
Holds information about a single buffer in a batch.
NvDsTensorFormat format
Holds the tensor format for buffers in the batch.
@ NVDSTENSOR_MAP_READ_WRITE
Specifies NvDsTensor mapping type "read/write.".
uint32_t gpuId
Holds a GPU ID.
int NvDsTensorDestroy(NvDsTensorArray *tensor)
Frees batched buffers previously allocated by NvDsTensorCreate().
Holds information about a single buffer in a batch.
uint32_t size
Holds the amount of memory to be allocated.
bool isContiguous
Holds a "contiguous memory" flag.
NvDsTensorPrecision precision
Holds precision for buffers in the batch.
void * _reserved[STRUCTURE_PADDING]
uint32_t dataSize
Holds the amount of allocated memory.
NvDsTensorMemType
Specifies memory types for NvDsTensor.
int NvDsTensorCreate(NvDsTensorArray **tensor, uint32_t arraySize, NvDsTensorCreateParams *params)
Allocates a batch of tensor.
bool isContiguous
Holds an "is contiguous" flag.
NvDsTensorMemMapFlags
Specifies mapping types for NvDsTensor.
#define STRUCTURE_PADDING
Defines the default padding length for reserved fields of structures.
@ NVDSTENSOR_MEM_CUDA_PINNED
Specifies CUDA Host memory type.
struct NvDsTensorArray NvDsTensorArray
Holds information about batched buffers.
uint32_t arraySize
Holds the batch size.
uint32_t gpuId
Holds the GPU ID.
@ NVDSTENSOR_MEM_CUDA_DEVICE
Specifies CUDA Device memory type.
int NvDsTensorMap(NvDsTensorArray *tensors, int index, NvDsTensorMemMapFlags type)
Maps hardware batched buffers to the HOST or CPU address space.
Holds parameters required to allocate an NvDsTensor.
void * _reserved[STRUCTURE_PADDING]
int NvDsTensorUnMap(NvDsTensorArray *tensors, int index)
Unmaps previously mapped buffer(s).
NvDsTensorMemType
Specifies memory types for NvDsTensor.
Holds information about batched buffers.
struct NvDsTensorCreateParams NvDsTensorCreateParams
Holds parameters required to allocate an NvDsTensor.
uint32_t numFilled
Holds the number valid and filled buffers.
NvDsTensorMemType memType
Holds type of memory for buffers in the batch.
@ NVDSTENSOR_MEM_SYSTEM
Specifies memory allocated by malloc().
@ NVDSTENSOR_MAP_READ
Specifies NvDsTensor mapping type "read.".
@ NVDSTENSOR_MAP_WRITE
Specifies NvDsTensor mapping type "write.".
NvDsTensorPrecision precision
@ NVDSTENSOR_MEM_CUDA_UNIFIED
Specifies CUDA Unified memory type.
void * dataPtr
Holds a pointer to allocated memory.
void * mappedAddr
Holds pointers to mapped buffers.
NvDsTensor * tensorArray
Holds a pointer to an array of batched buffers.
NvDsTensorMemType memType
Holds the type of memory to be allocated.