6 #include <boost/test/unit_test.hpp> 25 std::list<armnn::Layer*> testLayers({ output, input });
27 BOOST_CHECK_EQUAL_COLLECTIONS(layerObservable.
begin(), layerObservable.
end(),
28 testLayers.begin(), testLayers.end());
42 addedLayerObservable.
Clear();
45 std::list<armnn::Layer*> emptyList({});
47 BOOST_CHECK_EQUAL_COLLECTIONS(addedLayerObservable.
begin(), addedLayerObservable.
end(),
48 emptyList.begin(), emptyList.end());
65 std::list<std::string> testList({
"output"});
67 BOOST_CHECK_EQUAL_COLLECTIONS(erasedLayerNamesObservable.
begin(), erasedLayerNamesObservable.
end(),
68 testList.begin(), testList.end());
84 erasedLayerNamesObservable.
Clear();
87 std::list<std::string> emptyList({});
89 BOOST_CHECK_EQUAL_COLLECTIONS(erasedLayerNamesObservable.
begin(), erasedLayerNamesObservable.
end(),
90 emptyList.begin(), emptyList.end());
BOOST_AUTO_TEST_SUITE(TensorflowLiteParser)
LayerT * AddLayer(Args &&... args)
Adds a new layer, of type LayerType, to the graph constructed with the arguments passed.
void EraseLayer(Iterator pos)
Deletes the layer at the specified position.
A layer user-provided data can be bound to (e.g. inputs, outputs).
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(AddedLayerObservableTest)
LayerT * InsertNewLayer(InputSlot &insertBefore, Args &&... args)
Inserts a new layer between the output slot currently connected to insertBefore and insertBefore itse...