31 using IRuntimePtr = std::unique_ptr<IRuntime, void(*)(IRuntime* runtime)>;
37 bool exportEnabled = false,
38 bool asyncEnabled = false,
39 bool profilingEnabled = false)
55 bool profilingEnabled = false)
71 bool profilingEnabled =
false,
73 bool externalMemoryManagementEnabled =
false)
111 : m_GpuAccTunedParameters(nullptr)
112 , m_EnableGpuProfiling(false)
113 , m_DynamicBackendsPath(
"")
114 , m_ProtectedMode(false)
115 , m_CustomAllocatorMap()
116 , m_MemoryOptimizerStrategyMap()
158 : m_EnableProfiling(false)
159 , m_TimelineEnabled(false)
160 , m_OutgoingCaptureFile(
"")
161 , m_IncomingCaptureFile(
"")
164 , m_FileFormat(
"binary")
165 , m_LocalPacketHandlers()
225 static void Destroy(
IRuntime* runtime);
242 std::string& errorMessage);
246 std::string& errorMessage,
268 void ClearImportedInputs(
NetworkId networkId,
const std::vector<ImportedInputId> inputIds);
273 void ClearImportedOutputs(
NetworkId networkId,
const std::vector<ImportedOutputId> outputIds);
287 std::vector<ImportedInputId> preImportedInputs = {},
288 std::vector<ImportedOutputId> preImportedOutputs = {});
301 std::unique_ptr<IWorkingMemHandle> CreateWorkingMemHandle(
NetworkId networkId);
306 const std::shared_ptr<IProfiler> GetProfiler(
NetworkId networkId)
const;
342 UpdateTunedParameters
361 virtual void Load(
const char* filename) = 0;
365 virtual void Save(
const char* filename)
const = 0;
const MemorySource m_InputSource
const bool m_ImportEnabled
Deprecated and will be removed in future release.
std::string m_OutgoingCaptureFile
Path to a file in which outgoing timeline profiling messages will be stored.
const bool m_AsyncEnabled
ExternalProfilingOptions()
std::unique_ptr< IRuntime, void(*)(IRuntime *runtime)> IRuntimePtr
std::vector< std::pair< LayerBindingId, class ConstTensor > > InputTensors
const ProfilingDetailsMethod m_OutputNetworkDetailsMethod
std::map< BackendId, std::shared_ptr< IMemoryOptimizerStrategy > > m_MemoryOptimizerStrategyMap
A map to define a custom memory optimizer strategy for specific backend Ids.
Copyright (c) 2021 ARM Limited and Contributors.
void IgnoreUnused(Ts &&...)
std::string m_IncomingCaptureFile
Path to a file in which incoming timeline profiling messages will be stored.
bool m_EnableProfiling
Indicates whether external profiling is enabled or not.
bool m_FileOnly
Enable profiling output to file only.
std::function< void(LayerGuid guid, unsigned int slotIndex, ITensorHandle *tensorHandle)> DebugCallbackFunction
Define the type of callback for the Debug layer to call.
int LayerBindingId
Type of identifiers for bindable layers (inputs, outputs).
ProfilingDetailsMethod
Define the behaviour of the internal profiler when outputting network details.
std::shared_ptr< IGpuAccTunedParameters > m_GpuAccTunedParameters
If set, uses the GpuAcc tuned parameters from the given object when executing GPU workloads...
std::vector< BackendOptions > m_BackendOptions
Pass backend specific options.
const bool m_ExternalMemoryManagementEnabled
std::vector< armnn::profiling::ILocalPacketHandlerSharedPtr > m_LocalPacketHandlers
std::vector< std::pair< LayerBindingId, class Tensor > > OutputTensors
std::unique_ptr< IOptimizedNetwork, void(*)(IOptimizedNetwork *network)> IOptimizedNetworkPtr
INetworkProperties(bool asyncEnabled, MemorySource inputSource, MemorySource outputSource, bool profilingEnabled=false, ProfilingDetailsMethod detailsMethod=ProfilingDetailsMethod::Undefined, bool externalMemoryManagementEnabled=false)
const bool m_ExportEnabled
Deprecated and will be removed in future release.
std::map< BackendId, std::shared_ptr< ICustomAllocator > > m_CustomAllocatorMap
A map to define a custom memory allocator for specific backend Ids.
std::unique_ptr< RuntimeImpl > pRuntimeImpl
Device specific knowledge to be passed to the optimizer.
constexpr unsigned int LOWEST_CAPTURE_PERIOD
The lowest performance data capture interval we support is 10 miliseconds.
class ARMNN_DEPRECATED_MSG_REMOVAL_DATE("Use ABI stable IStrategy instead.", "22.05") ILayerVisitor
std::shared_ptr< IGpuAccTunedParameters > IGpuAccTunedParametersPtr
The following API is replaced by the backend options API.
bool m_ProtectedMode
Setting this flag will allow the user to create the Runtime in protected mode.
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...
virtual ~IGpuAccTunedParameters()
Manages a set of GpuAcc parameters which have been tuned for maximum performance. ...
MemorySource
Define the Memory Source to reduce copies.
uint32_t m_CapturePeriod
The duration at which captured profiling messages will be flushed.
bool m_TimelineEnabled
Indicates whether external timeline profiling is enabled or not.
const MemorySource m_OutputSource
ExternalProfilingOptions m_ProfilingOptions
const bool m_ProfilingEnabled
std::string m_FileFormat
The format of the file used for outputting profiling data.
virtual ~INetworkProperties()