23 const std::vector<armnn::BackendOptions>& backendOptions = {},
27 const std::vector<armnn::BackendOptions>& backendOptions = {},
171 char const*
const* options_values,
173 void (*report_error)(
const char*));
175 const std::vector<armnn::BackendId>&
GetBackends()
const {
return m_Backends; }
177 void SetBackends(
const std::vector<armnn::BackendId>& backends) { m_Backends = backends; }
222 {
return m_DebugCallbackFunc; }
226 { m_InternalProfilingEnabled = internalProfilingState; m_InternalProfilingDetail = internalProfilingDetail; }
233 { m_ProfilingOptions = externalProfilingParams; }
236 {
return m_ProfilingOptions; }
238 void SetSerializeToDot(
const std::string& serializeToDotFile) { m_SerializeToDot = serializeToDotFile; }
244 m_RuntimeOptions = runtimeOptions;
249 return m_RuntimeOptions;
271 bool m_InternalProfilingEnabled =
false;
284 std::string m_SerializeToDot =
"";
CPU Execution: Reference C++ kernels.
void SetSerializeToDot(const std::string &serializeToDotFile)
LogSeverity StringToLogLevel(std::string level)
bool GetInternalProfilingState() const
ProfilingDetailsMethod
Define the behaviour of the internal profiler when outputting network details.
const std::string & GetDynamicBackendsPath() const
std::vector< BackendOptions > m_BackendOptions
Pass backend specific options.
const std::string & GetSerializeToDot() const
Compute
The Compute enum is now deprecated and it is now being replaced by BackendId.
const armnn::OptimizerOptions & GetOptimizerOptions() const
DelegateOptions(armnn::Compute computeDevice, const std::vector< armnn::BackendOptions > &backendOptions={}, armnn::Optional< armnn::LogSeverity > logSeverityLevel=armnn::EmptyOptional())
const std::vector< armnn::BackendOptions > & GetBackendOptions() const
void SetLoggingSeverity(const armnn::LogSeverity &level)
Sets the severity level for logging within ArmNN that will be used on creation of the delegate...
bool has_value() const noexcept
const armnn::IRuntime::CreationOptions & GetRuntimeOptions()
ArmNN performs an optimization on each model/network before it gets loaded for execution.
const armnn::ProfilingDetailsMethod & GetInternalProfilingDetail() const
Struct for the users to pass backend specific options.
std::string m_DynamicBackendsPath
Setting this value will override the paths set by the DYNAMIC_BACKEND_PATHS compiler directive Only a...
bool m_EnableGpuProfiling
Setting this flag will allow the user to obtain GPU profiling information from the runtime...
EmptyOptional is used to initialize the Optional class in case we want to have default value for an O...
void SetExternalProfilingParams(const armnn::IRuntime::CreationOptions::ExternalProfilingOptions &externalProfilingParams)
void SetDynamicBackendsPath(const std::string &dynamicBackendsPath)
void SetBackends(const std::vector< armnn::BackendId > &backends)
const std::vector< armnn::BackendId > & GetBackends() const
const armnn::Optional< armnn::DebugCallbackFunction > & GetDebugCallbackFunction() const
void AddBackendOption(const armnn::BackendOptions &option)
Appends a backend option to the list of backend options.
const armnn::IRuntime::CreationOptions::ExternalProfilingOptions & GetExternalProfilingParams() const
armnn::LogSeverity GetLoggingSeverity()
Returns the severity level for logging within ArmNN.
bool GetGpuProfilingState()
void SetOptimizerOptions(const armnn::OptimizerOptions &optimizerOptions)
void SetGpuProfilingState(bool gpuProfilingState)
void SetLoggingSeverity(const std::string &level)
void SetInternalProfilingParams(bool internalProfilingState, const armnn::ProfilingDetailsMethod &internalProfilingDetail)
void SetRuntimeOptions(const armnn::IRuntime::CreationOptions &runtimeOptions)
: This might overwrite options that were set with other setter functions of DelegateOptions ...