ArmNN
 24.02
IStrategy.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2021 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #pragma once
6 
8 #include <armnn/Types.hpp>
9 
10 #include <armnn/NetworkFwd.hpp>
11 #include <armnn/TensorFwd.hpp>
12 
13 namespace armnn
14 {
15 
16 class IStrategy
17 {
18 protected:
20 virtual ~IStrategy() {}
21 
22 public:
23 virtual void ExecuteStrategy(const IConnectableLayer* layer,
24  const armnn::BaseDescriptor& descriptor,
25  const std::vector<armnn::ConstTensor>& constants,
26  const char* name,
27  const armnn::LayerBindingId id = 0) = 0;
28 
29 virtual void FinishStrategy() {};
30 
31 };
32 
33 
34 } // namespace armnn
armnn::IStrategy
Definition: IStrategy.hpp:16
armnn::IStrategy::IStrategy
IStrategy()
Definition: IStrategy.hpp:19
TensorFwd.hpp
armnn::IStrategy::FinishStrategy
virtual void FinishStrategy()
Definition: IStrategy.hpp:29
armnn::LayerBindingId
int LayerBindingId
Type of identifiers for bindable layers (inputs, outputs).
Definition: Types.hpp:309
DescriptorsFwd.hpp
armnn::IStrategy::~IStrategy
virtual ~IStrategy()
Definition: IStrategy.hpp:20
armnn::BaseDescriptor
Base class for all descriptors.
Definition: Descriptors.hpp:22
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
Types.hpp
armnn::IConnectableLayer
Interface for a layer that is connectable to other layers via InputSlots and OutputSlots.
Definition: INetwork.hpp:80
NetworkFwd.hpp
armnn::IStrategy::ExecuteStrategy
virtual void ExecuteStrategy(const IConnectableLayer *layer, const armnn::BaseDescriptor &descriptor, const std::vector< armnn::ConstTensor > &constants, const char *name, const armnn::LayerBindingId id=0)=0