From: Inki Dae Date: Wed, 4 Mar 2020 03:27:44 +0000 (+0900) Subject: Update description of inference_engine_tensor_info structure X-Git-Tag: submit/tizen/20200423.063253~44 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2a5fe8a7ad0f7a1e5a619e49c26282b043af8ea;p=platform%2Fcore%2Fmultimedia%2Finference-engine-interface.git Update description of inference_engine_tensor_info structure Change-Id: Ibd70368f453a9dea5eb5ab85c2730789428a555f Signed-off-by: Inki Dae --- diff --git a/include/inference_engine_type.h b/include/inference_engine_type.h index ab6a472..d141399 100644 --- a/include/inference_engine_type.h +++ b/include/inference_engine_type.h @@ -157,6 +157,10 @@ typedef struct _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. + * + * Caution. Tensor size is not in-memory buffer size in bytes so based on a given tensor size, + * upper framework should allocate actual tensor buffer according to tensor data types (i.e., uint8, float32...) * * @since_tizen 6.0 */ @@ -164,7 +168,7 @@ typedef struct _inference_engine_tensor_info { std::vector 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. */ + size_t size; /** tensor buffer size. The size should be height * width * channel count */ // TODO. } inference_engine_tensor_info;