ArmNN
NotReleased
|
#include <Graph.hpp>
#include <SubgraphView.hpp>
#include <SubgraphViewSelector.hpp>
#include <armnn/BackendRegistry.hpp>
#include <backendsCommon/CpuTensorHandle.hpp>
#include <test/TestUtils.hpp>
#include <algorithm>
Go to the source code of this file.
Functions | |
template<typename CollectionType > | |
bool | AreEqual (const CollectionType &lhs, const CollectionType &rhs) |
template<typename CollectionType > | |
bool | Contains (const CollectionType &collection, const typename CollectionType::value_type &item) |
template<typename MapType > | |
bool | Contains (const MapType &map, const typename MapType::key_type &key) |
template<typename ConvolutionLayer > | |
void | SetWeightAndBias (ConvolutionLayer *layer, const armnn::TensorInfo &weightInfo, const armnn::TensorInfo &biasInfo) |
armnn::SubgraphView::InputSlots | CreateInputsFrom (const std::vector< armnn::Layer *> &layers) |
armnn::SubgraphView::OutputSlots | CreateOutputsFrom (const std::vector< armnn::Layer *> &layers) |
armnn::SubgraphView::SubgraphViewPtr | CreateSubgraphViewFrom (armnn::SubgraphView::InputSlots &&inputs, armnn::SubgraphView::OutputSlots &&outputs, armnn::SubgraphView::Layers &&layers) |
armnn::IBackendInternalUniquePtr | CreateBackendObject (const armnn::BackendId &backendId) |
armnn::TensorShape | MakeTensorShape (unsigned int batches, unsigned int channels, unsigned int height, unsigned int width, armnn::DataLayout layout) |
bool AreEqual | ( | const CollectionType & | lhs, |
const CollectionType & | rhs | ||
) |
Definition at line 24 of file CommonTestUtils.hpp.
bool Contains | ( | const CollectionType & | collection, |
const typename CollectionType::value_type & | item | ||
) |
Definition at line 41 of file CommonTestUtils.hpp.
bool Contains | ( | const MapType & | map, |
const typename MapType::key_type & | key | ||
) |
Definition at line 48 of file CommonTestUtils.hpp.
armnn::IBackendInternalUniquePtr CreateBackendObject | ( | const armnn::BackendId & | backendId | ) |
Definition at line 45 of file CommonTestUtils.cpp.
References armnn::BackendRegistryInstance().
Referenced by SetWeightAndBias().
armnn::SubgraphView::InputSlots CreateInputsFrom | ( | const std::vector< armnn::Layer *> & | layers | ) |
Definition at line 12 of file CommonTestUtils.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and SetWeightAndBias().
armnn::SubgraphView::OutputSlots CreateOutputsFrom | ( | const std::vector< armnn::Layer *> & | layers | ) |
Definition at line 25 of file CommonTestUtils.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and SetWeightAndBias().
armnn::SubgraphView::SubgraphViewPtr CreateSubgraphViewFrom | ( | armnn::SubgraphView::InputSlots && | inputs, |
armnn::SubgraphView::OutputSlots && | outputs, | ||
armnn::SubgraphView::Layers && | layers | ||
) |
Definition at line 38 of file CommonTestUtils.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and SetWeightAndBias().
armnn::TensorShape MakeTensorShape | ( | unsigned int | batches, |
unsigned int | channels, | ||
unsigned int | height, | ||
unsigned int | width, | ||
armnn::DataLayout | layout | ||
) |
Definition at line 54 of file CommonTestUtils.cpp.
References armnn::GetDataLayoutName(), armnn::NCHW, and armnn::NHWC.
Referenced by SetWeightAndBias(), and TransposeConvolution2dEndToEnd().
void SetWeightAndBias | ( | ConvolutionLayer * | layer, |
const armnn::TensorInfo & | weightInfo, | ||
const armnn::TensorInfo & | biasInfo | ||
) |
Definition at line 54 of file CommonTestUtils.hpp.
References CreateBackendObject(), CreateInputsFrom(), CreateOutputsFrom(), CreateSubgraphViewFrom(), and MakeTensorShape().