blob: fbd8629c94ee6de0eb71f3abc1e9e64815b0a79f (
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 <Layer.hpp>
#include <Graph.hpp>
namespace armnn
{
template <typename LayerType, typename ... Params>
LayerType* Layer::CloneBase(Graph& graph, Params&& ... params) const
{
LayerType* const layer = graph.AddLayer<LayerType>(std::forward<Params>(params)...);
layer->SetComputeDevice(m_ComputeDevice);
layer->SetGuid(GetGuid());
return layer;
}
} // namespace
|