Doxygen Book
GstTensorMetaInfo Struct Reference

Data structure to describe a tensor data. This represents the basic information of a memory block for tensor stream. More...

#include <tensor_typedef.h>

Collaboration diagram for GstTensorMetaInfo:

Public Attributes

uint32_t magic
 
uint32_t version
 
uint32_t type
 
tensor_dim dimension
 
uint32_t format
 
uint32_t media_type
 
union {
   GstSparseTensorInfo   sparse_info
 
}; 
 Union of the required information for processing each tensor "format". More...
 

Detailed Description

Data structure to describe a tensor data. This represents the basic information of a memory block for tensor stream.

Internally NNStreamer handles a buffer with capability other/tensors-flexible using this information.

  • version: The version of tensor meta.
  • type: The type of each element in the tensor. This should be a value of enumeration tensor_type.
  • dimension: The dimension of tensor. This also denotes the rank of tensor. (e.g., [3:224:224:0] means rank 3.)
  • format: The data format in the tensor. This should be a value of enumeration tensor_format.
  • media_type: The media type of tensor. This should be a value of enumeration media_type.

Definition at line 310 of file tensor_typedef.h.

Member Data Documentation

◆ @59

union { ... }

Union of the required information for processing each tensor "format".

◆ dimension

tensor_dim GstTensorMetaInfo::dimension

Definition at line 315 of file tensor_typedef.h.

◆ format

uint32_t GstTensorMetaInfo::format

Definition at line 316 of file tensor_typedef.h.

◆ magic

uint32_t GstTensorMetaInfo::magic

Definition at line 312 of file tensor_typedef.h.

◆ media_type

uint32_t GstTensorMetaInfo::media_type

Definition at line 317 of file tensor_typedef.h.

◆ sparse_info

GstSparseTensorInfo GstTensorMetaInfo::sparse_info

Definition at line 323 of file tensor_typedef.h.

◆ type

uint32_t GstTensorMetaInfo::type

Definition at line 314 of file tensor_typedef.h.

◆ version

uint32_t GstTensorMetaInfo::version

Definition at line 313 of file tensor_typedef.h.


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