diff options
author | Matthew Sloyan <matthew.sloyan@arm.com> | 2023-03-30 10:12:08 +0100 |
---|---|---|
committer | ryan.oshea3 <ryan.oshea3@arm.com> | 2023-04-05 20:36:32 +0000 |
commit | ebe392df1635790bf21714549adb97f2f75559e1 (patch) | |
tree | 6fb8e56cc755d7c47a62bbe72c54b6ca5445377d /delegate/test/LogicalTest.cpp | |
parent | ac9607f401dc30003aa97bd179a06d6b8a32139f (diff) | |
download | armnn-ebe392df1635790bf21714549adb97f2f75559e1.tar.gz |
IVGCVSW-7562 Implement DelegateTestInterpreter for classic delegate
* Updated all tests to use new DelegateTestInterpreter.
* Fixed some unit tests where the shape was incorrect.
* Add file identifier to FlatBuffersBuilder, as it is required for
validation when creating the model using new API.
Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com>
Change-Id: I1c4f5464367b35d4528571fa94d14bfaef18fb4d
Diffstat (limited to 'delegate/test/LogicalTest.cpp')
-rw-r--r-- | delegate/test/LogicalTest.cpp | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/delegate/test/LogicalTest.cpp b/delegate/test/LogicalTest.cpp index 57bbd318e7..8414293547 100644 --- a/delegate/test/LogicalTest.cpp +++ b/delegate/test/LogicalTest.cpp @@ -27,15 +27,15 @@ void LogicalBinaryAndBoolTest(std::vector<armnn::BackendId>& backends) std::vector<bool> input1Values { 0, 1, 0, 1 }; std::vector<bool> expectedOutputValues { 0, 0, 0, 1 }; - LogicalBinaryTest<bool>(tflite::BuiltinOperator_LOGICAL_AND, - ::tflite::TensorType_BOOL, - backends, - input0Shape, - input1Shape, - expectedOutputShape, - input0Values, - input1Values, - expectedOutputValues); + LogicalBinaryTest(tflite::BuiltinOperator_LOGICAL_AND, + ::tflite::TensorType_BOOL, + backends, + input0Shape, + input1Shape, + expectedOutputShape, + input0Values, + input1Values, + expectedOutputValues); } void LogicalBinaryAndBroadcastTest(std::vector<armnn::BackendId>& backends) @@ -48,15 +48,15 @@ void LogicalBinaryAndBroadcastTest(std::vector<armnn::BackendId>& backends) std::vector<bool> input1Values { 1 }; std::vector<bool> expectedOutputValues { 0, 1, 0, 1 }; - LogicalBinaryTest<bool>(tflite::BuiltinOperator_LOGICAL_AND, - ::tflite::TensorType_BOOL, - backends, - input0Shape, - input1Shape, - expectedOutputShape, - input0Values, - input1Values, - expectedOutputValues); + LogicalBinaryTest(tflite::BuiltinOperator_LOGICAL_AND, + ::tflite::TensorType_BOOL, + backends, + input0Shape, + input1Shape, + expectedOutputShape, + input0Values, + input1Values, + expectedOutputValues); } void LogicalBinaryOrBoolTest(std::vector<armnn::BackendId>& backends) @@ -69,15 +69,15 @@ void LogicalBinaryOrBoolTest(std::vector<armnn::BackendId>& backends) std::vector<bool> input1Values { 0, 1, 0, 1 }; std::vector<bool> expectedOutputValues { 0, 1, 1, 1 }; - LogicalBinaryTest<bool>(tflite::BuiltinOperator_LOGICAL_OR, - ::tflite::TensorType_BOOL, - backends, - input0Shape, - input1Shape, - expectedOutputShape, - input0Values, - input1Values, - expectedOutputValues); + LogicalBinaryTest(tflite::BuiltinOperator_LOGICAL_OR, + ::tflite::TensorType_BOOL, + backends, + input0Shape, + input1Shape, + expectedOutputShape, + input0Values, + input1Values, + expectedOutputValues); } void LogicalBinaryOrBroadcastTest(std::vector<armnn::BackendId>& backends) @@ -90,15 +90,15 @@ void LogicalBinaryOrBroadcastTest(std::vector<armnn::BackendId>& backends) std::vector<bool> input1Values { 1 }; std::vector<bool> expectedOutputValues { 1, 1, 1, 1 }; - LogicalBinaryTest<bool>(tflite::BuiltinOperator_LOGICAL_OR, - ::tflite::TensorType_BOOL, - backends, - input0Shape, - input1Shape, - expectedOutputShape, - input0Values, - input1Values, - expectedOutputValues); + LogicalBinaryTest(tflite::BuiltinOperator_LOGICAL_OR, + ::tflite::TensorType_BOOL, + backends, + input0Shape, + input1Shape, + expectedOutputShape, + input0Values, + input1Values, + expectedOutputValues); } // LogicalNot operator uses ElementwiseUnary unary layer and descriptor but is still classed as logical operator. |