24.02
|
Go to the documentation of this file.
13 unsigned int fromIndex = 0,
unsigned int toIndex = 0);
19 : m_layerType(layerType)
26 layer->
GetType() == m_layerType);
33 template <
typename LayerT>
36 return (layer->
GetType() == armnn::LayerEnumOf<LayerT>());
41 return (first == last);
45 template <
typename U,
typename... Us>
48 return u(*first) &&
CheckSequence(std::next(first), last, us...);
51 template <
typename LayerT>
54 for (
auto& layer : graph)
56 if (layer->GetType() == armnn::LayerEnumOf<LayerT>())
58 auto& relatedLayers = layer->GetRelatedLayerNames();
59 if (!std::equal(relatedLayers.begin(), relatedLayers.end(), testRelatedLayers.begin(),
60 testRelatedLayers.end()))
bool CheckRelatedLayers(armnn::Graph &graph, const std::list< std::string > &testRelatedLayers)
arm::pipe::IProfilingService & GetProfilingService(armnn::RuntimeImpl *runtime)
bool operator()(const armnn::Layer *const layer)
bool IsLayerOfType(const armnn::Layer *const layer)
const std::string & GetNameStr() const
LayerType GetType() const override
Returns the armnn::LayerType of this layer.
Copyright (c) 2021 ARM Limited and Contributors.
void Connect(armnn::IConnectableLayer *from, armnn::IConnectableLayer *to, const armnn::TensorInfo &tensorInfo, unsigned int fromIndex=0, unsigned int toIndex=0)
Graph & GetGraphForTesting(IOptimizedNetwork *optNet)
Interface for a layer that is connectable to other layers via InputSlots and OutputSlots.
std::vector< BackendOptions > ModelOptions
ModelOptions & GetModelOptionsForTesting(IOptimizedNetwork *optNet)
bool CheckSequence(const armnn::Graph::ConstIterator first, const armnn::Graph::ConstIterator last)
LayerNameAndTypeCheck(armnn::LayerType layerType, const char *name)
LayerType
When adding a new layer, adapt also the LastLayer enum value in the enum class LayerType below.