From: 박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 Date: Thu, 6 Sep 2018 10:14:27 +0000 (+0900) Subject: [enco] Support INT32 tensor type (#1389) X-Git-Tag: nncc_backup~1900 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cf4b0bba07c00b0f0921f994d9b81baef0f9f530;p=platform%2Fcore%2Fml%2Fnnfw.git [enco] Support INT32 tensor type (#1389) This commit extends ANN CodeGen to properly declare a tensor operand of INT32 type. Signed-off-by: Jonghyun Park --- diff --git a/contrib/enco/core/src/CppGen/Subnet.cpp b/contrib/enco/core/src/CppGen/Subnet.cpp index 084a102..f927583 100644 --- a/contrib/enco/core/src/CppGen/Subnet.cpp +++ b/contrib/enco/core/src/CppGen/Subnet.cpp @@ -86,6 +86,8 @@ const char *tensor_operand_code(const ann::DType &dtype) { switch (dtype) { + case ann::DType::S32: + return "ANEURALNETWORKS_TENSOR_INT32"; case ann::DType::F32: return "ANEURALNETWORKS_TENSOR_FLOAT32"; default: