aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/graph/IOperation.h
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2017-10-25 18:26:46 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commit407c3e6e383affa7ebe72ce5f50fcf163ff037a3 (patch)
treec516e583fe0a2e5ee9dfc218fe10880000edcf91 /arm_compute/graph/IOperation.h
parente500747b5c1d27aeffae316c8190f6d169bb2fbd (diff)
downloadComputeLibrary-407c3e6e383affa7ebe72ce5f50fcf163ff037a3.tar.gz
COMPMID-630: Rework nodes
Reworked node: -BatchNormalization -Floor -FullyConncted -L2Normalize -Normalization -Pooling -Softmax Change-Id: I4c71cfffb1f59aac3326ba8b1f831339c5244394 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/93134 Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'arm_compute/graph/IOperation.h')
-rw-r--r--arm_compute/graph/IOperation.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/arm_compute/graph/IOperation.h b/arm_compute/graph/IOperation.h
index c2c56a349d..a9fa4f83c7 100644
--- a/arm_compute/graph/IOperation.h
+++ b/arm_compute/graph/IOperation.h
@@ -51,6 +51,20 @@ public:
*/
virtual TargetHint target() const = 0;
};
+
+#define REGISTER_SIMPLE_OPERATION(NAME, TARGET, OP) \
+ class NAME : public IOperation \
+ { \
+ public: \
+ std::unique_ptr<arm_compute::IFunction> configure(NodeContext &ctx) final; \
+ TargetHint target() const final \
+ { \
+ return TargetHint::TARGET; \
+ } \
+ }; \
+ static detail::OperationRegistrar<NAME> NAME##_registrar(OP); \
+ std::unique_ptr<arm_compute::IFunction> NAME::configure(NodeContext &ctx)
+
} // namespace graph
} // namespace arm_compute
#endif /* __ARM_COMPUTE_GRAPH_IOPERATION_H__ */