15 #include <doctest/doctest.h> 30 Connect(inputLayer, fillLayer, inputTensorInfo, 0, 0);
31 Connect(fillLayer, outputLayer, outputTensorInfo, 0, 0);
36 template<armnn::DataType ArmnnType,
typename T = armnn::ResolveType<ArmnnType>>
37 void FillEndToEnd(
const std::vector<armnn::BackendId>& backends)
39 using namespace armnn;
44 std::vector<int32_t> inputData {
48 std::vector<float> floatExpectedOutputData {
53 std::vector<T> expectedOutputData = armnnUtils::QuantizedVector<T>(floatExpectedOutputData);
56 TensorInfo outputInfo({ 1, 1, 5, 3 }, ArmnnType);
62 std::map<int, std::vector<int32_t>> inputTensorData = {{ 0, inputData }};
63 std::map<int, std::vector<T>> expectedOutputTensorData = {{ 0, expectedOutputData }};
65 EndToEndLayerTestImpl<DataType::Signed32, ArmnnType>(move(network),
67 expectedOutputTensorData,
Interface for a layer that is connectable to other layers via InputSlots and OutputSlots.
Copyright (c) 2021 ARM Limited and Contributors.
void Connect(armnn::IConnectableLayer *from, armnn::IConnectableLayer *to, const armnn::TensorInfo &tensorInfo, unsigned int fromIndex, unsigned int toIndex)
std::unique_ptr< INetwork, void(*)(INetwork *network)> INetworkPtr
static INetworkPtr Create(NetworkOptions networkOptions={})
A FillDescriptor for the FillLayer.