diff options
author | Matthew Sloyan <matthew.sloyan@arm.com> | 2022-10-28 18:02:17 +0100 |
---|---|---|
committer | Matthew Sloyan <matthew.sloyan@arm.com> | 2022-11-02 15:08:37 +0000 |
commit | 164bf4f29f6f1b2a3e6714ef4f5a21fc0fd16c2b (patch) | |
tree | e7296130a787578e1be4d3a93de46a9c466944b4 /src/backends/tosaCommon/operatorMappings/TosaOperatorUtils.hpp | |
parent | 2e950f4fa774ac995230addea898f3b11bf146cc (diff) | |
download | armnn-164bf4f29f6f1b2a3e6714ef4f5a21fc0fd16c2b.tar.gz |
IVGCVSW-7164 Implement TosaRefBackend::OptimizeSubgraphView
* Added TosaRefBackend::OptimizeSubgraphView implementation.
* Generalised TosaRefLayerSupport::IsLayerSupported to work with any
operator.
* Changed TosaCommon.hpp utils to inline functions.
* Added source files for TosaMappings.hpp and AdditionOperator.hpp.
* Fixed multiple defines issue with HALF_ROUND_STYLE and
HALF_ROUND_TIES_TO_EVEN.
Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com>
Change-Id: Ib2576ec3fb97faa3a2256b2fb93ec16ac8745760
Diffstat (limited to 'src/backends/tosaCommon/operatorMappings/TosaOperatorUtils.hpp')
-rw-r--r-- | src/backends/tosaCommon/operatorMappings/TosaOperatorUtils.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backends/tosaCommon/operatorMappings/TosaOperatorUtils.hpp b/src/backends/tosaCommon/operatorMappings/TosaOperatorUtils.hpp index e11f293b12..f580a53ebc 100644 --- a/src/backends/tosaCommon/operatorMappings/TosaOperatorUtils.hpp +++ b/src/backends/tosaCommon/operatorMappings/TosaOperatorUtils.hpp @@ -14,7 +14,7 @@ using namespace armnn; using namespace tosa; // Function to return Tosa datatype from input ArmNN datatype. -DType ArmNNToDType(const DataType& type) +inline DType ArmNNToDType(const DataType& type) { switch (type) { @@ -43,7 +43,7 @@ DType ArmNNToDType(const DataType& type) } // Function to return Tosa tensor shape from input ArmNN tensor shape. -std::vector<int32_t> GetTosaTensorShape(const TensorShape& shape) +inline std::vector<int32_t> GetTosaTensorShape(const TensorShape& shape) { std::vector<int32_t> returnShape; for (u_int32_t i = 0; i < shape.GetNumDimensions(); i++) @@ -55,7 +55,7 @@ std::vector<int32_t> GetTosaTensorShape(const TensorShape& shape) // Function to return unique int as a string to ensure uniqueness between all input, output and block names. static int uniqueTosaMappingID = 0; -std::string GetUniqueTosaMappingID() +inline std::string GetUniqueTosaMappingID() { return std::to_string(++uniqueTosaMappingID); } |