12 unsigned int fromIndex = 0,
unsigned int toIndex = 0);
14 template <
typename LayerT>
17 return (layer->
GetType() == armnn::LayerEnumOf<LayerT>());
22 return (first == last);
26 template <
typename U,
typename... Us>
29 return u(*first) &&
CheckSequence(std::next(first), last, us...);
32 template <
typename LayerT>
35 for (
auto& layer : graph)
37 if (layer->GetType() == armnn::LayerEnumOf<LayerT>())
39 auto& relatedLayers = layer->GetRelatedLayerNames();
40 if (!std::equal(relatedLayers.begin(), relatedLayers.end(), testRelatedLayers.begin(),
41 testRelatedLayers.end()))
Interface for a layer that is connectable to other layers via InputSlots and OutputSlots.
boost::transform_iterator< decltype(&PtrCast< const Layer >), Iterator > ConstIterator
void Connect(armnn::IConnectableLayer *from, armnn::IConnectableLayer *to, const armnn::TensorInfo &tensorInfo, unsigned int fromIndex=0, unsigned int toIndex=0)
bool CheckSequence(const armnn::Graph::ConstIterator first, const armnn::Graph::ConstIterator last)
LayerType GetType() const
bool CheckRelatedLayers(armnn::Graph &graph, const std::list< std::string > &testRelatedLayers)
bool IsLayerOfType(const armnn::Layer *const layer)