• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #pragma once
6 
7 #include <Layer.hpp>
8 #include <Graph.hpp>
9 
10 namespace armnn
11 {
12 
13 template <typename LayerType, typename ... Params>
CloneBase(Graph & graph,Params &&...params) const14 LayerType* Layer::CloneBase(Graph& graph, Params&& ... params) const
15 {
16     LayerType* const layer = graph.AddLayer<LayerType>(std::forward<Params>(params)...);
17 
18     layer->BackendSelectionHint(GetBackendHint());
19     layer->SetBackendId(GetBackendId());
20     layer->SetGuid(GetGuid());
21     layer->SetShapeInferenceMethod(m_ShapeInferenceMethod);
22     layer->SetAllowExpandedDims(m_AllowExpandedDims);
23 
24     return layer;
25 }
26 
27 } // namespace
28