aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/test/GraphUtils.hpp
blob: 3325405eaf84b5b0c551d0d91494207a37c2084f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once

#include <armnn/Graph.hpp>

#include <string>

namespace
{

bool GraphHasNamedLayer(const armnn::Graph& graph, const std::string& name)
{
    for (auto&& layer : graph)
    {
        if (layer->GetName() == name)
        {
            return true;
        }
    }
    return false;
}
}