aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/graph2/backends/NEON
diff options
context:
space:
mode:
Diffstat (limited to 'arm_compute/graph2/backends/NEON')
-rw-r--r--arm_compute/graph2/backends/NEON/NEDeviceBackend.h2
-rw-r--r--arm_compute/graph2/backends/NEON/NENodeValidator.h17
2 files changed, 16 insertions, 3 deletions
diff --git a/arm_compute/graph2/backends/NEON/NEDeviceBackend.h b/arm_compute/graph2/backends/NEON/NEDeviceBackend.h
index 533a2c0863..5d1394b2f3 100644
--- a/arm_compute/graph2/backends/NEON/NEDeviceBackend.h
+++ b/arm_compute/graph2/backends/NEON/NEDeviceBackend.h
@@ -46,7 +46,7 @@ public:
std::unique_ptr<ITensorHandle> create_tensor(const Tensor &tensor) override;
std::unique_ptr<ITensorHandle> create_subtensor(ITensorHandle *parent, TensorShape shape, Coordinates coords) override;
std::unique_ptr<arm_compute::IFunction> configure_node(INode &node, GraphContext &ctx) override;
- Status validate_node(const INode &node) override;
+ Status validate_node(INode &node) override;
std::shared_ptr<arm_compute::IMemoryManager> create_memory_manager(MemoryManagerAffinity affinity) override;
private:
diff --git a/arm_compute/graph2/backends/NEON/NENodeValidator.h b/arm_compute/graph2/backends/NEON/NENodeValidator.h
index 8e8448526a..d39ab15a27 100644
--- a/arm_compute/graph2/backends/NEON/NENodeValidator.h
+++ b/arm_compute/graph2/backends/NEON/NENodeValidator.h
@@ -24,15 +24,28 @@
#ifndef __ARM_COMPUTE_GRAPH2_NENODEVALIDATOR_H__
#define __ARM_COMPUTE_GRAPH2_NENODEVALIDATOR_H__
-#include "arm_compute/graph2/INodeVisitor.h"
+#include "arm_compute/core/Error.h"
namespace arm_compute
{
namespace graph2
{
+// Forward declarations
+class INode;
+
namespace backends
{
-// TODO (geopin01) : Add node validator
+class NENodeValidator final
+{
+public:
+ /** Validate a node
+ *
+ * @param[in] node Node to validate
+ *
+ * @return An error status
+ */
+ static Status validate(INode *node);
+};
} // namespace backends
} // namespace graph2
} // namespace arm_compute