aboutsummaryrefslogtreecommitdiff
path: root/src/armnnTestUtils/GraphUtils.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/armnnTestUtils/GraphUtils.hpp')
-rw-r--r--src/armnnTestUtils/GraphUtils.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/armnnTestUtils/GraphUtils.hpp b/src/armnnTestUtils/GraphUtils.hpp
new file mode 100644
index 0000000000..95f07040f2
--- /dev/null
+++ b/src/armnnTestUtils/GraphUtils.hpp
@@ -0,0 +1,25 @@
+//
+// Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+#pragma once
+
+#include <Graph.hpp>
+
+#include <string>
+
+
+bool GraphHasNamedLayer(const armnn::Graph& graph, const std::string& name);
+
+armnn::Layer* GetFirstLayerWithName(armnn::Graph& graph, const std::string& name);
+
+bool CheckNumberOfInputSlot(armnn::Layer* layer, unsigned int num);
+
+bool CheckNumberOfOutputSlot(armnn::Layer* layer, unsigned int num);
+
+bool IsConnected(armnn::Layer* srcLayer, armnn::Layer* destLayer,
+ unsigned int srcSlot, unsigned int destSlot,
+ const armnn::TensorInfo& expectedTensorInfo);
+
+bool CheckOrder(const armnn::Graph& graph, const armnn::Layer* first, const armnn::Layer* second);
+