aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/graph/IOperation.h
diff options
context:
space:
mode:
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__ */