diff options
Diffstat (limited to 'arm_compute/graph/Utils.h')
-rw-r--r-- | arm_compute/graph/Utils.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arm_compute/graph/Utils.h b/arm_compute/graph/Utils.h index 57a6f14bae..cb421fc55a 100644 --- a/arm_compute/graph/Utils.h +++ b/arm_compute/graph/Utils.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2019 ARM Limited. + * Copyright (c) 2018-2020 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -34,6 +34,12 @@ namespace graph // Forward Declaration class GraphContext; +inline bool is_utility_node(INode *node) +{ + std::set<NodeType> utility_node_types = { NodeType::PrintLayer }; + return utility_node_types.find(node->type()) != utility_node_types.end(); +} + /** Returns the tensor descriptor of a given tensor * * @param[in] g Graph that the tensor belongs to |