6 #include <boost/test/unit_test.hpp> 16 using namespace armnn;
22 auto neonBackend = std::make_unique<NeonBackend>();
23 auto clBackend = std::make_unique<ClBackend>();
26 neonBackend->RegisterTensorHandleFactories(registry);
27 clBackend->RegisterTensorHandleFactories(registry);
29 const BackendId& neonBackendId = neonBackend->GetId();
30 const BackendId& clBackendId = clBackend->GetId();
33 backends[neonBackendId] = std::move(neonBackend);
34 backends[clBackendId] = std::move(clBackend);
66 std::vector<std::string> errors;
69 BOOST_TEST(result.m_Error ==
false);
70 BOOST_TEST(result.m_Warning ==
false);
103 BOOST_TEST(copyCount == 0);
114 BOOST_TEST(importCount == 0);
BOOST_AUTO_TEST_SUITE(TensorflowLiteParser)
No strategy has been defined. Used internally to verify integrity of optimizations.
LayerT * AddLayer(Args &&... args)
Adds a new layer, of type LayerType, to the graph constructed with the arguments passed.
int Connect(InputSlot &destination)
EdgeStrategy GetEdgeStrategyForConnection(unsigned int connectionIdx) const
Copyright (c) 2020 ARM Limited.
void SetBackendId(const BackendId &id)
OptimizationResult SelectTensorHandleStrategy(Graph &optGraph, BackendsMap &backends, TensorHandleFactoryRegistry ®istry, Optional< std::vector< std::string > &> errMessages)
const InputSlot & GetInputSlot(unsigned int index) const override
Get a const input slot handle by slot index.
A layer user-provided data can be bound to (e.g. inputs, outputs).
void ForEachLayer(Func func) const
This layer represents a softmax operation.
BOOST_AUTO_TEST_CASE(CheckConvolution2dLayer)
BOOST_AUTO_TEST_SUITE_END()
LayerType GetType() const
const OutputSlot & GetOutputSlot(unsigned int index=0) const override
Get the const output slot handle by slot index.
ITensorHandleFactory::FactoryId GetTensorHandleFactoryId() const
Graph & TopologicalSort()
Sorts layers in topological order and return this.
A SoftmaxDescriptor for the SoftmaxLayer.
void AddCompatibilityLayers(std::map< BackendId, std::unique_ptr< class IBackendInternal >> &backends, TensorHandleFactoryRegistry ®istry)
Modifies the graph in-place, removing edges connecting layers using different compute devices...
std::map< BackendId, std::unique_ptr< class IBackendInternal > > BackendsMap