23.02
|
Go to the documentation of this file.
12 #include <client/include/ProfilingOptions.hpp>
25 const std::vector<armnn::BackendOptions>& backendOptions = {},
29 const std::vector<armnn::BackendOptions>& backendOptions = {},
190 char const*
const* options_values,
192 void (*report_error)(
const char*));
194 const std::vector<armnn::BackendId>&
GetBackends()
const {
return m_Backends; }
196 void SetBackends(
const std::vector<armnn::BackendId>& backends) { m_Backends = backends; }
241 {
return m_DebugCallbackFunc; }
245 { m_InternalProfilingEnabled = internalProfilingState; m_InternalProfilingDetail = internalProfilingDetail; }
251 const arm::pipe::ProfilingOptions& externalProfilingParams)
252 { m_ProfilingOptions = externalProfilingParams; }
255 {
return m_ProfilingOptions; }
257 void SetSerializeToDot(
const std::string& serializeToDotFile) { m_SerializeToDot = serializeToDotFile; }
263 m_RuntimeOptions = runtimeOptions;
268 return m_RuntimeOptions;
273 m_DisableTfLiteRuntimeFallback = fallbackState;
277 return m_DisableTfLiteRuntimeFallback;
295 arm::pipe::ProfilingOptions m_ProfilingOptions;
299 bool m_InternalProfilingEnabled =
false;
312 std::string m_SerializeToDot =
"";
315 bool m_DisableTfLiteRuntimeFallback =
false;
void SetLoggingSeverity(const std::string &level)
void SetOptimizerOptions(const armnn::OptimizerOptions &optimizerOptions)
const armnn::IRuntime::CreationOptions & GetRuntimeOptions()
LogSeverity StringToLogLevel(std::string level)
std::string m_DynamicBackendsPath
Setting this value will override the paths set by the DYNAMIC_BACKEND_PATHS compiler directive Only a...
bool TfLiteRuntimeFallbackDisabled()
void SetBackends(const std::vector< armnn::BackendId > &backends)
Struct for the users to pass backend specific options.
void SetExternalProfilingParams(const arm::pipe::ProfilingOptions &externalProfilingParams)
void SetGpuProfilingState(bool gpuProfilingState)
Compute
The Compute enum is now deprecated and it is now being replaced by BackendId.
void DisableTfLiteRuntimeFallback(bool fallbackState)
bool GetGpuProfilingState()
bool m_EnableGpuProfiling
Setting this flag will allow the user to obtain GPU profiling information from the runtime.
std::vector< BackendOptions > m_BackendOptions
Pass backend specific options.
const arm::pipe::ProfilingOptions & GetExternalProfilingParams() const
const armnn::ProfilingDetailsMethod & GetInternalProfilingDetail() const
const std::string & GetSerializeToDot() const
bool has_value() const noexcept
EmptyOptional is used to initialize the Optional class in case we want to have default value for an O...
void AddBackendOption(const armnn::BackendOptions &option)
Appends a backend option to the list of backend options.
const armnn::Optional< armnn::DebugCallbackFunction > & GetDebugCallbackFunction() const
void SetSerializeToDot(const std::string &serializeToDotFile)
void SetLoggingSeverity(const armnn::LogSeverity &level)
Sets the severity level for logging within ArmNN that will be used on creation of the delegate.
const std::vector< armnn::BackendOptions > & GetBackendOptions() const
armnn::LogSeverity GetLoggingSeverity()
Returns the severity level for logging within ArmNN.
bool GetInternalProfilingState() const
void SetRuntimeOptions(const armnn::IRuntime::CreationOptions &runtimeOptions)
@Note: This might overwrite options that were set with other setter functions of DelegateOptions
void SetInternalProfilingParams(bool internalProfilingState, const armnn::ProfilingDetailsMethod &internalProfilingDetail)
ProfilingDetailsMethod
Define the behaviour of the internal profiler when outputting network details.
void SetDynamicBackendsPath(const std::string &dynamicBackendsPath)
@ CpuRef
CPU Execution: Reference C++ kernels.
ArmNN performs an optimization on each model/network before it gets loaded for execution.
const std::vector< armnn::BackendId > & GetBackends() const
const armnn::OptimizerOptions & GetOptimizerOptions() const
const std::string & GetDynamicBackendsPath() const
DelegateOptions(armnn::Compute computeDevice, const std::vector< armnn::BackendOptions > &backendOptions={}, armnn::Optional< armnn::LogSeverity > logSeverityLevel=armnn::EmptyOptional())