aboutsummaryrefslogtreecommitdiff
path: root/python/pyarmnn/test
diff options
context:
space:
mode:
authorCathal Corbett <cathal.corbett@arm.com>2021-11-18 18:17:38 +0000
committerCathal Corbett <cathal.corbett@arm.com>2021-11-22 16:01:45 +0000
commitf0836e0d7efa947f7589c476b531944078cc02d2 (patch)
treeb179d953e9ad7d44b2d2146b5e74cd48cff4e637 /python/pyarmnn/test
parent8dd77d2093b00f195a94eb909abb526190ae6a55 (diff)
downloadarmnn-f0836e0d7efa947f7589c476b531944078cc02d2.tar.gz
IVGCVSW-6591 AddLogicalBinaryLayer to PyArmNN
* AddLogicalBinaryLayer to PyArmNN armnn_network.i * LogicalBinaryDescriptor to PyArmNN armnn_descriptors.i * Add layer to test_network_method_exists() in test_network.py * Add descriptor unit tests to test_descriptors.py Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: I2f6288987332e1556235a9c16582e96b3a0fb641
Diffstat (limited to 'python/pyarmnn/test')
-rw-r--r--python/pyarmnn/test/test_descriptors.py10
-rw-r--r--python/pyarmnn/test/test_network.py1
2 files changed, 9 insertions, 2 deletions
diff --git a/python/pyarmnn/test/test_descriptors.py b/python/pyarmnn/test/test_descriptors.py
index 663abc6ea9..0360196614 100644
--- a/python/pyarmnn/test/test_descriptors.py
+++ b/python/pyarmnn/test/test_descriptors.py
@@ -403,6 +403,10 @@ def test_elementwise_unary_descriptor_default_values():
assert desc.m_Operation == ann.UnaryOperation_Abs
+def test_logical_binary_descriptor_default_values():
+ desc = ann.LogicalBinaryDescriptor()
+ assert desc.m_Operation == ann.LogicalBinaryOperation_LogicalAnd
+
def test_view_descriptor_incorrect_input():
desc = ann.SplitterDescriptor(2, 3)
with pytest.raises(RuntimeError) as err:
@@ -493,7 +497,8 @@ generated_classes_names = list(map(lambda x: x[0], generated_classes))
'TransposeConvolution2dDescriptor',
'ElementwiseUnaryDescriptor',
'FillDescriptor',
- 'GatherDescriptor'])
+ 'GatherDescriptor',
+ 'LogicalBinaryDescriptor'])
class TestDescriptorMassChecks:
def test_desc_implemented(self, desc_name):
@@ -537,7 +542,8 @@ generated_classes_names = list(map(lambda x: x[0], generated_classes))
'TransposeConvolution2dDescriptor',
'ElementwiseUnaryDescriptor',
'FillDescriptor',
- 'GatherDescriptor'])
+ 'GatherDescriptor',
+ 'LogicalBinaryDescriptor'])
class TestDescriptorMassChecks:
def test_desc_implemented(self, desc_name):
diff --git a/python/pyarmnn/test/test_network.py b/python/pyarmnn/test/test_network.py
index 4f37c473ac..1792041e11 100644
--- a/python/pyarmnn/test/test_network.py
+++ b/python/pyarmnn/test/test_network.py
@@ -208,6 +208,7 @@ def test_serialize_to_dot_mode_readonly(network_file, get_runtime, tmpdir):
'AddGatherLayer',
'AddInputLayer',
'AddInstanceNormalizationLayer',
+ 'AddLogicalBinaryLayer',
'AddLogSoftmaxLayer',
'AddL2NormalizationLayer',
'AddLstmLayer',