21.05
|
#include "GraphUtils.hpp"
#include <armnn/LayerVisitorBase.hpp>
#include <Network.hpp>
#include <boost/test/unit_test.hpp>
Go to the source code of this file.
Functions | |
BOOST_AUTO_TEST_CASE (LayerGuids) | |
BOOST_AUTO_TEST_CASE (NetworkBasic) | |
BOOST_AUTO_TEST_CASE (LayerNamesAreOptionalForINetwork) | |
BOOST_AUTO_TEST_CASE (LayerNamesAreOptionalForNetwork) | |
BOOST_AUTO_TEST_CASE (NetworkModification) | |
BOOST_AUTO_TEST_CASE (NetworkModification_SplitterConcat) | |
BOOST_AUTO_TEST_CASE (NetworkModification_SplitterAddition) | |
BOOST_AUTO_TEST_CASE (NetworkModification_SplitterMultiplication) | |
BOOST_AUTO_TEST_CASE (Network_AddQuantize) | |
BOOST_AUTO_TEST_CASE (Network_AddMerge) | |
BOOST_AUTO_TEST_CASE (StandInLayerNetworkTest) | |
BOOST_AUTO_TEST_CASE (StandInLayerSingleInputMultipleOutputsNetworkTest) | |
BOOST_AUTO_TEST_CASE | ( | LayerGuids | ) |
Definition at line 32 of file NetworkTests.cpp.
References NetworkImpl::AddAdditionLayer(), NetworkImpl::AddInputLayer(), NetworkImpl::AddOutputLayer(), and IConnectableLayer::GetGuid().
BOOST_AUTO_TEST_CASE | ( | NetworkBasic | ) |
Definition at line 44 of file NetworkTests.cpp.
References NetworkImpl::PrintGraph(), and armnn::Success.
BOOST_AUTO_TEST_CASE | ( | LayerNamesAreOptionalForINetwork | ) |
Definition at line 50 of file NetworkTests.cpp.
References INetwork::Create().
BOOST_AUTO_TEST_CASE | ( | LayerNamesAreOptionalForNetwork | ) |
Definition at line 59 of file NetworkTests.cpp.
References NetworkImpl::AddActivationLayer(), NetworkImpl::AddAdditionLayer(), NetworkImpl::AddInputLayer(), and NetworkImpl::AddOutputLayer().
BOOST_AUTO_TEST_CASE | ( | NetworkModification | ) |
Definition at line 68 of file NetworkTests.cpp.
References NetworkImpl::AddActivationLayer(), NetworkImpl::AddAdditionLayer(), NetworkImpl::AddBatchNormalizationLayer(), NetworkImpl::AddConvolution2dLayer(), NetworkImpl::AddFullyConnectedLayer(), NetworkImpl::AddInputLayer(), NetworkImpl::AddMultiplicationLayer(), NetworkImpl::AddNormalizationLayer(), NetworkImpl::AddOutputLayer(), NetworkImpl::AddPooling2dLayer(), NetworkImpl::AddSoftmaxLayer(), IOutputSlot::Connect(), armnn::Float32, IOutputSlot::GetConnection(), NetworkImpl::GetGraph(), IConnectableLayer::GetInputSlot(), IOutputSlot::GetNumConnections(), IConnectableLayer::GetNumInputSlots(), Graph::GetNumLayers(), IConnectableLayer::GetNumOutputSlots(), IConnectableLayer::GetOutputSlot(), and GraphHasNamedLayer().
BOOST_AUTO_TEST_CASE | ( | NetworkModification_SplitterConcat | ) |
Definition at line 228 of file NetworkTests.cpp.
References NetworkImpl::AddConcatLayer(), NetworkImpl::AddInputLayer(), NetworkImpl::AddOutputLayer(), NetworkImpl::AddSoftmaxLayer(), NetworkImpl::AddSplitterLayer(), IOutputSlot::Connect(), IInputSlot::GetConnection(), IOutputSlot::GetConnection(), IConnectableLayer::GetInputSlot(), IConnectableLayer::GetNumInputSlots(), IConnectableLayer::GetNumOutputSlots(), and IConnectableLayer::GetOutputSlot().
BOOST_AUTO_TEST_CASE | ( | NetworkModification_SplitterAddition | ) |
Definition at line 285 of file NetworkTests.cpp.
References NetworkImpl::AddAdditionLayer(), NetworkImpl::AddInputLayer(), NetworkImpl::AddOutputLayer(), NetworkImpl::AddSoftmaxLayer(), NetworkImpl::AddSplitterLayer(), IOutputSlot::Connect(), IConnectableLayer::GetInputSlot(), and IConnectableLayer::GetOutputSlot().
BOOST_AUTO_TEST_CASE | ( | NetworkModification_SplitterMultiplication | ) |
Definition at line 330 of file NetworkTests.cpp.
References NetworkImpl::AddInputLayer(), NetworkImpl::AddMultiplicationLayer(), NetworkImpl::AddOutputLayer(), NetworkImpl::AddSoftmaxLayer(), NetworkImpl::AddSplitterLayer(), IOutputSlot::Connect(), IConnectableLayer::GetInputSlot(), and IConnectableLayer::GetOutputSlot().
BOOST_AUTO_TEST_CASE | ( | Network_AddQuantize | ) |
Definition at line 373 of file NetworkTests.cpp.
References INetwork::Create(), armnn::Float32, IInputSlot::GetConnection(), TensorInfo::GetDataType(), IConnectableLayer::GetInputSlot(), IConnectableLayer::GetName(), IConnectableLayer::GetNumInputSlots(), IConnectableLayer::GetNumOutputSlots(), IConnectableLayer::GetOutputSlot(), IOutputSlot::GetTensorInfo(), armnn::QAsymmU8, and LayerVisitorBase< DefaultPolicy >::VisitQuantizeLayer().
BOOST_AUTO_TEST_CASE | ( | Network_AddMerge | ) |
Definition at line 423 of file NetworkTests.cpp.
References IOutputSlot::Connect(), INetwork::Create(), armnn::Float32, IInputSlot::GetConnection(), TensorInfo::GetDataType(), IConnectableLayer::GetInputSlot(), IConnectableLayer::GetName(), IConnectableLayer::GetNumInputSlots(), IConnectableLayer::GetNumOutputSlots(), IConnectableLayer::GetOutputSlot(), IOutputSlot::GetTensorInfo(), armnn::info, IOutputSlot::SetTensorInfo(), and LayerVisitorBase< DefaultPolicy >::VisitMergeLayer().
BOOST_AUTO_TEST_CASE | ( | StandInLayerNetworkTest | ) |
Definition at line 475 of file NetworkTests.cpp.
References NetworkImpl::AddFloorLayer(), NetworkImpl::AddInputLayer(), NetworkImpl::AddOutputLayer(), NetworkImpl::AddStandInLayer(), IOutputSlot::Connect(), NetworkImpl::GetGraph(), IConnectableLayer::GetOutputSlot(), GraphHasNamedLayer(), StandInDescriptor::m_NumInputs, and StandInDescriptor::m_NumOutputs.
BOOST_AUTO_TEST_CASE | ( | StandInLayerSingleInputMultipleOutputsNetworkTest | ) |
Definition at line 508 of file NetworkTests.cpp.
References NetworkImpl::AddInputLayer(), NetworkImpl::AddOutputLayer(), NetworkImpl::AddStandInLayer(), BOOST_AUTO_TEST_SUITE_END(), IOutputSlot::Connect(), NetworkImpl::GetGraph(), IConnectableLayer::GetOutputSlot(), GraphHasNamedLayer(), StandInDescriptor::m_NumInputs, and StandInDescriptor::m_NumOutputs.