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