diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2020-02-04 17:39:59 +0000 |
---|---|---|
committer | Georgios Pinitas <georgios.pinitas@arm.com> | 2020-02-05 16:03:21 +0000 |
commit | f8c4749a463106696ab99b6400b92a858a169a19 (patch) | |
tree | 86d711d5bf25ef3b3a8288ba2aa0b25c2da61091 /arm_compute/graph/GraphBuilder.h | |
parent | 55a687d5e2cf3434e4c2564ac73959dcc7163304 (diff) | |
download | ComputeLibrary-f8c4749a463106696ab99b6400b92a858a169a19.tar.gz |
COMPMID-3083: Add graph support for PRelu
Change-Id: I48492f8c48b818b563bba1e0b48831ac5cdf1420
Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/2685
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/graph/GraphBuilder.h')
-rw-r--r-- | arm_compute/graph/GraphBuilder.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arm_compute/graph/GraphBuilder.h b/arm_compute/graph/GraphBuilder.h index 33c222dbd6..23541c4a0f 100644 --- a/arm_compute/graph/GraphBuilder.h +++ b/arm_compute/graph/GraphBuilder.h @@ -366,6 +366,16 @@ public: * @return Node ID of the created node, EmptyNodeID in case of error */ static NodeID add_pooling_node(Graph &g, NodeParams params, NodeIdxPair input, PoolingLayerInfo pool_info); + /** Adds a prelu layer node to the graph + * + * @param[in] g Graph to add the node to + * @param[in] params Common node parameters + * @param[in] input Input to the PRelu node as a NodeID-Index pair + * @param[in] alpha Alpha input to the PRelu node as a NodeID-Index pair + * + * @return Node ID of the created node, EmptyNodeID in case of error + */ + static NodeID add_prelu_node(Graph &g, NodeParams params, NodeIdxPair input, NodeIdxPair alpha); /** Adds a print layer node to the graph * * @param[in] g Graph to add the node to |