27 Connect(inputLayer, rankLayer, inputTensorInfo, 0, 0);
28 Connect(rankLayer, outputLayer, outputTensorInfo, 0, 0);
33 template<armnn::DataType ArmnnType,
typename T = armnn::ResolveType<ArmnnType>>
34 void RankEndToEnd(
const std::vector<armnn::BackendId>& backends)
36 using namespace armnn;
38 std::vector<float> floatInputData{
43 std::vector<T> inputData = armnnUtils::QuantizedVector<T>(floatInputData);
45 std::vector<int32_t> expectedOutputData{ 4 };
47 TensorInfo inputInfo ({ 1, 1, 5, 3 }, ArmnnType);
53 BOOST_TEST_CHECKPOINT(
"create a network");
55 std::map<int, std::vector<T>> inputTensorData = {{ 0, inputData }};
56 std::map<int, std::vector<int32_t>> expectedOutputTensorData = {{ 0, expectedOutputData }};
58 EndToEndLayerTestImpl<ArmnnType, DataType::Signed32>(move(network),
60 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={})