blob: 3ff7d2f67b02078af145c3484397e889c770ba34 (
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
|
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// See LICENSE file in the project root for full license information.
//
#pragma once
#include "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;
}
}
|