24.08
|
Go to the source code of this file.
Classes | |
class | LayerNameAndTypeCheck |
Namespaces | |
armnn | |
Copyright (c) 2021 ARM Limited and Contributors. | |
Functions | |
void | Connect (armnn::IConnectableLayer *from, armnn::IConnectableLayer *to, const armnn::TensorInfo &tensorInfo, unsigned int fromIndex=0, unsigned int toIndex=0) |
template<typename LayerT > | |
bool | IsLayerOfType (const armnn::Layer *const layer) |
bool | CheckSequence (const armnn::Graph::ConstIterator first, const armnn::Graph::ConstIterator last) |
template<typename U , typename... Us> | |
bool | CheckSequence (const armnn::Graph::ConstIterator first, const armnn::Graph::ConstIterator last, U &&u, Us &&... us) |
Checks each unary function in Us evaluates true for each correspondent layer in the sequence [first, last). More... | |
template<typename LayerT > | |
bool | CheckRelatedLayers (armnn::Graph &graph, const std::list< std::string > &testRelatedLayers) |
Graph & | GetGraphForTesting (IOptimizedNetwork *optNet) |
ModelOptions & | GetModelOptionsForTesting (IOptimizedNetwork *optNet) |
arm::pipe::IProfilingService & | GetProfilingService (armnn::RuntimeImpl *runtime) |
bool CheckRelatedLayers | ( | armnn::Graph & | graph, |
const std::list< std::string > & | testRelatedLayers | ||
) |
Definition at line 52 of file TestUtils.hpp.
|
inline |
Definition at line 39 of file TestUtils.hpp.
Referenced by CheckSequence().
bool CheckSequence | ( | const armnn::Graph::ConstIterator | first, |
const armnn::Graph::ConstIterator | last, | ||
U && | u, | ||
Us &&... | us | ||
) |
Checks each unary function in Us evaluates true for each correspondent layer in the sequence [first, last).
Definition at line 46 of file TestUtils.hpp.
References CheckSequence().
void Connect | ( | armnn::IConnectableLayer * | from, |
armnn::IConnectableLayer * | to, | ||
const armnn::TensorInfo & | tensorInfo, | ||
unsigned int | fromIndex = 0 , |
||
unsigned int | toIndex = 0 |
||
) |
Definition at line 14 of file TestUtils.cpp.
References ARMNN_ASSERT, IOutputSlot::Connect(), armnn::FullyConnected, IConnectableLayer::GetInputSlot(), armnn::GetLayerTypeAsCString(), IConnectableLayer::GetName(), IConnectableLayer::GetOutputSlot(), IConnectableLayer::GetType(), and IOutputSlot::SetTensorInfo().
bool IsLayerOfType | ( | const armnn::Layer *const | layer | ) |
Definition at line 34 of file TestUtils.hpp.
References Layer::GetType().