MCPcopy Create free account
hub / github.com/ARM-software/armnn / BuildExecutor

Function BuildExecutor

tests/ExecuteNetwork/ExecuteNetwork.cpp:14–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#include <armnn/Logging.hpp>
13
14std::unique_ptr<IExecutor> BuildExecutor(ProgramOptions& programOptions)
15{
16 if (programOptions.m_ExNetParams.m_TfLiteExecutor ==
17 ExecuteNetworkParams::TfLiteExecutor::ArmNNTfLiteOpaqueDelegate ||
18 programOptions.m_ExNetParams.m_TfLiteExecutor == ExecuteNetworkParams::TfLiteExecutor::ArmNNTfLiteDelegate ||
19 programOptions.m_ExNetParams.m_TfLiteExecutor == ExecuteNetworkParams::TfLiteExecutor::TfliteInterpreter)
20 {
21#if defined(ARMNN_TFLITE_DELEGATE) || defined(ARMNN_TFLITE_OPAQUE_DELEGATE)
22 return std::make_unique<TfLiteExecutor>(programOptions.m_ExNetParams, programOptions.m_RuntimeOptions);
23#else
24 ARMNN_LOG(fatal) << "Not built with Arm NN Tensorflow-Lite delegate support.";
25 return nullptr;
26#endif
27 }
28 else
29 {
30 return std::make_unique<ArmNNExecutor>(programOptions.m_ExNetParams, programOptions.m_RuntimeOptions);
31 }
32}
33
34// MAIN
35int main(int argc, const char* argv[])

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected