typedef struct _inference_engine_tensor_buffer {
void *buffer; /**< a buffer which contains tensor data. */
inference_tensor_data_type_e data_type; /**< a tensor type of the layer. */
+ size_t size; /**< actual tensor buffer size in bytes. The size should be height * width * channel count * bytes per pixel. */
// TODO.
} inference_engine_tensor_buffer;
* - a name of a given layer
* - a tensor shape of the layer
* - a tensor type of the layer
- * - a tensor size of the layer.
+ * - a tensor element size of the layer.
*
- * Caution. Tensor size is not in-memory buffer size in bytes so based on a given tensor size,
+ * Caution. Tensor element size is not in-memory buffer size in bytes so based on a given tensor element size,
* upper framework should allocate actual tensor buffer according to tensor data types (i.e., uint8, float32...)
*
* @since_tizen 6.0
std::vector<int> shape; /**< a tensor shape. */
inference_tensor_shape_type_e shape_type; /**< a tensor shape of the layer. */
inference_tensor_data_type_e data_type; /**< a tensor type of the layer. */
- size_t size; /** tensor buffer size. The size should be height * width * channel count */
+ size_t size; /** tensor element size. The size should be height * width * channel count */
// TODO.
} inference_engine_tensor_info;