21.02
|
#include "GraphUtils.hpp"
#include <Graph.hpp>
#include <Layer.hpp>
#include <armnn/TypesUtils.hpp>
#include <armnn/Exceptions.hpp>
#include <armnn/utility/NumericCast.hpp>
#include <armnn/utility/PolymorphicDowncast.hpp>
#include <armnn/backends/IBackendInternal.hpp>
#include <backendsCommon/CpuTensorHandle.hpp>
#include <backendsCommon/TensorHandleFactoryRegistry.hpp>
#include <boost/test/unit_test.hpp>
Go to the source code of this file.
Functions | |
BOOST_AUTO_TEST_CASE (ClassGraph) | |
BOOST_AUTO_TEST_CASE (TopologicalSort) | |
BOOST_AUTO_TEST_CASE (InsertNewLayerBefore) | |
BOOST_AUTO_TEST_CASE (InsertNewLayerAfter) | |
BOOST_FIXTURE_TEST_CASE (AddCopyLayers, CopyLayersFixture) | |
BOOST_FIXTURE_TEST_CASE (AddCopyLayersSeveralTimes, CopyLayersFixture) | |
BOOST_FIXTURE_TEST_CASE (CopyLayersAddedBetweenSameLayersHaveDifferentNames, CopyLayersFixture) | |
BOOST_AUTO_TEST_CASE (DuplicateLayerNames) | |
BOOST_AUTO_TEST_CASE | ( | ClassGraph | ) |
Definition at line 24 of file GraphTests.cpp.
References Graph::AddLayer(), and GraphHasNamedLayer().
BOOST_AUTO_TEST_CASE | ( | TopologicalSort | ) |
Definition at line 31 of file GraphTests.cpp.
References Graph::AddLayer(), CheckOrder(), OutputSlot::Connect(), GetFirstLayerWithName(), Layer::GetInputSlot(), and Layer::GetOutputSlot().
BOOST_AUTO_TEST_CASE | ( | InsertNewLayerBefore | ) |
Definition at line 74 of file GraphTests.cpp.
References Graph::AddLayer(), CheckOrder(), OutputSlot::Connect(), armnn::Float32, GetFirstLayerWithName(), Layer::GetInputSlot(), Layer::GetOutputSlot(), Graph::InsertNewLayer(), and OutputSlot::SetTensorInfo().
BOOST_AUTO_TEST_CASE | ( | InsertNewLayerAfter | ) |
Definition at line 160 of file GraphTests.cpp.
References Graph::AddLayer(), CheckOrder(), OutputSlot::Connect(), armnn::Float32, GetFirstLayerWithName(), Layer::GetInputSlot(), Layer::GetOutputSlot(), Graph::InsertNewLayer(), and OutputSlot::SetTensorInfo().
BOOST_AUTO_TEST_CASE | ( | DuplicateLayerNames | ) |
Definition at line 576 of file GraphTests.cpp.
References Graph::AddLayer(), Graph::begin(), BOOST_AUTO_TEST_SUITE_END(), OutputSlot::Connect(), armnn::CpuRef, Layer::GetInputSlot(), Layer::GetOutputSlot(), armnn::Input, armnn::Output, Layer::SetBackendId(), and Graph::TopologicalSort().
BOOST_FIXTURE_TEST_CASE | ( | AddCopyLayers | , |
CopyLayersFixture | |||
) |
Definition at line 516 of file GraphTests.cpp.
BOOST_FIXTURE_TEST_CASE | ( | AddCopyLayersSeveralTimes | , |
CopyLayersFixture | |||
) |
Definition at line 525 of file GraphTests.cpp.
BOOST_FIXTURE_TEST_CASE | ( | CopyLayersAddedBetweenSameLayersHaveDifferentNames | , |
CopyLayersFixture | |||
) |
Definition at line 540 of file GraphTests.cpp.
References Graph::AddCompatibilityLayers(), Graph::AddLayer(), OutputSlot::Connect(), armnn::CopyToTarget, armnn::CpuRef, armnn::DirectCompatibility, Layer::GetInputSlot(), Layer::GetOutputSlot(), armnn::GpuAcc, Layer::SetBackendId(), and OutputSlot::SetEdgeStrategy().