28 Connect(inputLayer, fillLayer, inputTensorInfo, 0, 0);
29 Connect(fillLayer, outputLayer, outputTensorInfo, 0, 0);
34 template<armnn::DataType ArmnnType,
typename T = armnn::ResolveType<ArmnnType>>
35 void FillEndToEnd(
const std::vector<armnn::BackendId>& backends)
37 using namespace armnn;
42 std::vector<int32_t> inputData {
46 std::vector<float> floatExpectedOutputData {
51 std::vector<T> expectedOutputData = armnnUtils::QuantizedVector<T>(floatExpectedOutputData);
54 TensorInfo outputInfo({ 1, 1, 5, 3 }, ArmnnType);
58 BOOST_TEST_CHECKPOINT(
"create a network");
60 std::map<int, std::vector<int32_t>> inputTensorData = {{ 0, inputData }};
61 std::map<int, std::vector<T>> expectedOutputTensorData = {{ 0, expectedOutputData }};
63 EndToEndLayerTestImpl<DataType::Signed32, ArmnnType>(move(network),
65 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.