NvDsPreProcessTensorMeta

class pyds.NvDsPreProcessTensorMeta

Tensor meta containing prepared tensor and related info inside preprocess user meta which is attached at batch level.

Variables:
  • raw_tensor_buffercapsule, raw tensor buffer preprocessed for infer.

  • max_elements_in_poolint, size of raw tensor buffer.

  • tensor_shapelist of int, raw tensor buffer shape.

  • data_typeNvDsDataType, model datatype for which tensor prepared.

  • tensor_namestring, to be same as model input layer name.

  • gpu_idint, gpu-id on which tensor prepared.

  • private_datacapsule, pointer to buffer from tensor pool.

  • meta_idint, meta id for differentiating between multiple tensor meta from same gst buffer,for the case when sum of roi’s exceeds the batch size.

  • maintain_aspect_ratiobool, parameter to inform whether aspect ratio is maintained in the preprocess tensor.

cast(self: capsule) pyds.NvDsPreProcessTensorMeta

Cast given object/data to NvDsPreProcessTensorMeta, call pyds.NvDsPreProcessTensorMeta.cast(data)