12 #include <client/include/ProfilingOptions.hpp> 25 const std::vector<armnn::BackendOptions>& backendOptions = {},
29 const std::vector<armnn::BackendOptions>& backendOptions = {},
184 char const*
const* options_values,
186 void (*report_error)(
const char*));
188 const std::vector<armnn::BackendId>&
GetBackends()
const {
return m_Backends; }
190 void SetBackends(
const std::vector<armnn::BackendId>& backends) { m_Backends = backends; }
235 {
return m_DebugCallbackFunc; }
239 { m_InternalProfilingEnabled = internalProfilingState; m_InternalProfilingDetail = internalProfilingDetail; }
245 const arm::pipe::ProfilingOptions& externalProfilingParams)
246 { m_ProfilingOptions = externalProfilingParams; }
249 {
return m_ProfilingOptions; }
251 void SetSerializeToDot(
const std::string& serializeToDotFile) { m_SerializeToDot = serializeToDotFile; }
257 m_RuntimeOptions = runtimeOptions;
262 return m_RuntimeOptions;
280 arm::pipe::ProfilingOptions m_ProfilingOptions;
284 bool m_InternalProfilingEnabled =
false;
297 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
void SetExternalProfilingParams(const arm::pipe::ProfilingOptions &externalProfilingParams)
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 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.
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)
const arm::pipe::ProfilingOptions & GetExternalProfilingParams() const
void SetRuntimeOptions(const armnn::IRuntime::CreationOptions &runtimeOptions)
: This might overwrite options that were set with other setter functions of DelegateOptions ...