From d261ffe7211dca5727e3472f7e29a3d16630c1ec Mon Sep 17 00:00:00 2001 From: Mike Kelly Date: Fri, 4 Aug 2023 13:17:23 +0100 Subject: IVGCVSW-6294 Added Split support to Android-NN-Driver * Added Split support to Android-NN-Driver Signed-off-by: Mike Kelly Change-Id: I4b0bc146597dae89b68402aa78d1f1b1c894a7fb --- 1.3/HalPolicy.cpp | 8 ++++++++ 1.3/HalPolicy.hpp | 2 ++ 2 files changed, 10 insertions(+) (limited to '1.3') diff --git a/1.3/HalPolicy.cpp b/1.3/HalPolicy.cpp index 2c8ef065..e5f295fd 100644 --- a/1.3/HalPolicy.cpp +++ b/1.3/HalPolicy.cpp @@ -159,6 +159,8 @@ bool HalPolicy::ConvertOperation(const Operation& operation, const Model& model, return ConvertSpaceToBatchNd(operation, model, data); case V1_3::OperationType::SPACE_TO_DEPTH: return ConvertSpaceToDepth(operation, model, data); + case V1_3::OperationType::SPLIT: + return ConvertSplit(operation, model, data); case V1_3::OperationType::SQRT: return ConvertSqrt(operation, model, data); case V1_3::OperationType::SQUEEZE: @@ -503,6 +505,12 @@ bool HalPolicy::ConvertTransposeConv2d(const Operation& operation, const Model& return ::ConvertTransposeConv2d(operation, model, data); } +bool HalPolicy::ConvertSplit(const Operation& operation, const Model& model, ConversionData& data) +{ + ALOGV("hal_1_3::HalPolicy::ConvertSplit()"); + return ::ConvertSplit(operation, model, data); +} + bool HalPolicy::ConvertTile(const Operation& operation, const Model& model, ConversionData& data) { ALOGV("hal_1_3::HalPolicy::ConvertTile()"); diff --git a/1.3/HalPolicy.hpp b/1.3/HalPolicy.hpp index b0bc09b4..c876da19 100644 --- a/1.3/HalPolicy.hpp +++ b/1.3/HalPolicy.hpp @@ -153,6 +153,8 @@ private: static bool ConvertSpaceToDepth(const Operation& operation, const Model& model, ConversionData& data); + static bool ConvertSplit(const Operation& operation, const Model& model, ConversionData& data); + static bool ConvertSqrt(const Operation& operation, const Model& model, ConversionData& data); static bool ConvertSqueeze(const Operation& operation, const Model& model, ConversionData& data); -- cgit v1.2.1