From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- 20.02/_runtime_test_impl_8hpp_source.xhtml | 132 +++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 20.02/_runtime_test_impl_8hpp_source.xhtml (limited to '20.02/_runtime_test_impl_8hpp_source.xhtml') diff --git a/20.02/_runtime_test_impl_8hpp_source.xhtml b/20.02/_runtime_test_impl_8hpp_source.xhtml new file mode 100644 index 0000000000..ff3c51dcc1 --- /dev/null +++ b/20.02/_runtime_test_impl_8hpp_source.xhtml @@ -0,0 +1,132 @@ + + + + + + + + + + + + + +ArmNN: src/backends/backendsCommon/test/RuntimeTestImpl.hpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
RuntimeTestImpl.hpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #pragma once
6 
7 
8 #include <Runtime.hpp>
9 
10 namespace
11 {
12 
13 inline void CreateAndDropDummyNetwork(const std::vector<armnn::BackendId>& backends, armnn::Runtime& runtime)
14 {
15  armnn::NetworkId networkIdentifier;
16  {
19 
21 
22  armnn::IConnectableLayer* input = network->AddInputLayer(0, "input");
23  armnn::IConnectableLayer* layer = network->AddActivationLayer(armnn::ActivationDescriptor(), "test");
24  armnn::IConnectableLayer* output = network->AddOutputLayer(0, "output");
25 
26  input->GetOutputSlot(0).Connect(layer->GetInputSlot(0));
27  layer->GetOutputSlot(0).Connect(output->GetInputSlot(0));
28 
29  // Sets the tensors in the network.
30  input->GetOutputSlot(0).SetTensorInfo(inputTensorInfo);
31  layer->GetOutputSlot(0).SetTensorInfo(outputTensorInfo);
32 
33  // optimize the network
34  armnn::IOptimizedNetworkPtr optNet = Optimize(*network, backends, runtime.GetDeviceSpec());
35 
36  runtime.LoadNetwork(networkIdentifier, std::move(optNet));
37  }
38 
39  runtime.UnloadNetwork(networkIdentifier);
40 }
41 
42 } // anonymous namespace
Interface for a layer that is connectable to other layers via InputSlots and OutputSlots.
Definition: INetwork.hpp:61
+
virtual const IDeviceSpec & GetDeviceSpec() const override
Definition: Runtime.hpp:63
+ + +
int NetworkId
Definition: IRuntime.hpp:19
+ +
virtual void SetTensorInfo(const TensorInfo &tensorInfo)=0
+
IOptimizedNetworkPtr Optimize(const INetwork &network, const std::vector< BackendId > &backendPreferences, const IDeviceSpec &deviceSpec, const OptimizerOptions &options=OptimizerOptions(), Optional< std::vector< std::string > &> messages=EmptyOptional())
Create an optimized version of the network.
Definition: Network.cpp:890
+
std::unique_ptr< IOptimizedNetwork, void(*)(IOptimizedNetwork *network)> IOptimizedNetworkPtr
Definition: INetwork.hpp:566
+
An ActivationDescriptor for the ActivationLayer.
Definition: Descriptors.hpp:20
+
virtual Status LoadNetwork(NetworkId &networkIdOut, IOptimizedNetworkPtr network) override
Loads a complete network into the Runtime.
Definition: Runtime.cpp:47
+ +
virtual const IInputSlot & GetInputSlot(unsigned int index) const =0
Get a const input slot handle by slot index.
+ +
virtual const IOutputSlot & GetOutputSlot(unsigned int index) const =0
Get the const output slot handle by slot index.
+
virtual Status UnloadNetwork(NetworkId networkId) override
Unloads a network from the Runtime.
Definition: Runtime.cpp:105
+
std::unique_ptr< INetwork, void(*)(INetwork *network)> INetworkPtr
Definition: INetwork.hpp:101
+
virtual int Connect(IInputSlot &destination)=0
+
static INetworkPtr Create()
Definition: Network.cpp:49
+
+
+ + + + -- cgit v1.2.1