aboutsummaryrefslogtreecommitdiff
path: root/python/pyarmnn/src/pyarmnn/swig/modules/armnn_network.i
diff options
context:
space:
mode:
authorRyan OShea <ryan.oshea3@arm.com>2023-07-28 17:38:19 +0100
committerNikhil Raj Arm <nikhil.raj@arm.com>2023-07-31 10:16:04 +0000
commit9a5e5b7032788249055f40edd763420f6bdba8fe (patch)
tree281cbc53b0542d03503611a1989a8b176f8f0521 /python/pyarmnn/src/pyarmnn/swig/modules/armnn_network.i
parent4f9a6d63cd263789377b97cc409e0c4c6d707830 (diff)
downloadarmnn-9a5e5b7032788249055f40edd763420f6bdba8fe.tar.gz
IVGCVSW-7703 Ensure PyArmNN has been updated with new
features added in ArmNN * Adds BatchMatMul layer and descriptor to pyarmnn * Adds ReverseV2 layer to pyarmnn * Adds ElementWiseBinary layer and descriptor to pyarmnn * Adds Tile layer and descriptor to pyarmnn * Adds network test for each layer Signed-off-by: Ryan OShea <ryan.oshea3@arm.com> Change-Id: I07116d9e7b1eb6b6f8a687d8ba7cfbd11c912d0d
Diffstat (limited to 'python/pyarmnn/src/pyarmnn/swig/modules/armnn_network.i')
-rw-r--r--python/pyarmnn/src/pyarmnn/swig/modules/armnn_network.i55
1 files changed, 55 insertions, 0 deletions
diff --git a/python/pyarmnn/src/pyarmnn/swig/modules/armnn_network.i b/python/pyarmnn/src/pyarmnn/swig/modules/armnn_network.i
index c9eef8630d..0b7f55d1cc 100644
--- a/python/pyarmnn/src/pyarmnn/swig/modules/armnn_network.i
+++ b/python/pyarmnn/src/pyarmnn/swig/modules/armnn_network.i
@@ -396,6 +396,21 @@ public:
%feature("docstring",
"
+ Adds a Batch Matrix Multiplication layer to the network.
+
+ Args:
+ desc (BatchMatMulDescriptor): Parameters for the BatchMatMul layer.
+ name (str): Optional name for the layer.
+
+ Returns:
+ IConnectableLayer: Interface for configuring the layer.
+ ") AddBatchMatMulLayer;
+ armnn::IConnectableLayer* AddBatchMatMulLayer(const armnn::BatchMatMulDescriptor& desc,
+ const char* name = nullptr);
+
+
+ %feature("docstring",
+ "
Adds a Batch Normalization layer to the network.
Args:
@@ -595,6 +610,20 @@ public:
%feature("docstring",
"
+ Adds an Elementwise Binary layer to the network. Type of binary operation to use is decided by elementwiseBinaryDescriptor. Binary operations supported are (Add, Div, Maximum, Minimum, Mul, Sub, SqDiff, Power)
+
+ Args:
+ elementwiseBinaryDescriptor (ElementwiseBinaryDescriptor): ElementwiseBinaryDescriptor to configure the choice of binary operation added to the network.
+ name (str): Optional name for the layer.
+
+ Returns:
+ IConnectableLayer: Interface for configuring the layer.
+ ") AddElementwiseBinaryLayer;
+ armnn::IConnectableLayer* AddElementwiseBinaryLayer(const ElementwiseBinaryDescriptor& elementwiseBinaryDescriptor,
+ const char* name = nullptr);
+
+ %feature("docstring",
+ "
Adds an Elementwise Unary layer to the network. Type of unary operation to use is decided by elementwiseUnaryDescriptor. Unary operations supported are (Abs, Exp, Neg, Rsqrt, Sqrt)
Args:
@@ -943,6 +972,18 @@ public:
%feature("docstring",
"
+ Adds a ReverseV2 layer to the network.
+
+ Args:
+ name (str): Optional name for the layer.
+
+ Returns:
+ IConnectableLayer: Interface for configuring the layer.
+ ") AddReverseV2Layer;
+ armnn::IConnectableLayer* AddReverseV2Layer(const char* name = nullptr);
+
+ %feature("docstring",
+ "
Adds a Shape layer to the network.
Args:
@@ -1122,6 +1163,20 @@ public:
%feature("docstring",
"
+ Adds a Tile layer to the network.
+
+ Args:
+ tileDescriptor (TileDescriptor): Description of the tile layer.
+ name (str): Optional name for the layer.
+
+ Returns:
+ IConnectableLayer: Interface for configuring the layer.
+ ") AddTileLayer;
+ armnn::IConnectableLayer* AddTileLayer(const armnn::TileDescriptor& tileDescriptor,
+ const char* name = nullptr);
+
+ %feature("docstring",
+ "
Adds a Transpose layer to the network.
Args: