24.02
|
Go to the documentation of this file.
27 class ILocalPacketHandler;
48 bool profilingEnabled =
false,
50 bool externalMemoryManagementEnabled =
false)
81 : m_GpuAccTunedParameters(nullptr)
82 , m_EnableGpuProfiling(false)
83 , m_DynamicBackendsPath(
"")
84 , m_ProtectedMode(false)
85 , m_CustomAllocatorMap()
86 , m_MemoryOptimizerStrategyMap()
128 : m_EnableProfiling(false)
129 , m_TimelineEnabled(false)
130 , m_OutgoingCaptureFile(
"")
131 , m_IncomingCaptureFile(
"")
134 , m_FileFormat(
"binary")
135 , m_LocalPacketHandlers()
195 static void Destroy(
IRuntime* runtime);
212 std::string& errorMessage);
216 std::string& errorMessage,
243 void ClearImportedInputs(
NetworkId networkId,
const std::vector<ImportedInputId> inputIds);
248 void ClearImportedOutputs(
NetworkId networkId,
const std::vector<ImportedOutputId> outputIds);
254 std::vector<ImportedInputId> preImportedInputIds = {},
255 std::vector<ImportedOutputId> preImportedOutputIds = {});
264 std::vector<ImportedInputId> preImportedInputs = {},
265 std::vector<ImportedOutputId> preImportedOutputs = {});
274 const IDeviceSpec& GetDeviceSpec()
const;
278 std::unique_ptr<IWorkingMemHandle> CreateWorkingMemHandle(
NetworkId networkId);
283 const std::shared_ptr<IProfiler> GetProfiler(
NetworkId networkId)
const;
292 IRuntime(
const IRuntime::CreationOptions& options);
319 UpdateTunedParameters
338 virtual void Load(
const char* filename) = 0;
342 virtual void Save(
const char* filename)
const = 0;
virtual ~INetworkProperties()
std::vector< arm::pipe::ILocalPacketHandlerSharedPtr > m_LocalPacketHandlers
std::unique_ptr< IOptimizedNetwork, void(*)(IOptimizedNetwork *network)> IOptimizedNetworkPtr
const bool m_AsyncEnabled
bool m_FileOnly
Enable profiling output to file only.
virtual ~IGpuAccTunedParameters()
const MemorySource m_InputSource
std::vector< std::pair< LayerBindingId, class ConstTensor > > InputTensors
std::string m_DynamicBackendsPath
Setting this value will override the paths set by the DYNAMIC_BACKEND_PATHS compiler directive Only a...
const bool m_ProfilingEnabled
const bool m_ExternalMemoryManagementEnabled
std::vector< std::pair< LayerBindingId, class Tensor > > OutputTensors
std::string m_IncomingCaptureFile
Path to a file in which incoming timeline profiling messages will be stored.
constexpr unsigned int LOWEST_CAPTURE_PERIOD
The lowest performance data capture interval we support is 10 miliseconds.
bool m_TimelineEnabled
Indicates whether external timeline profiling is enabled or not.
uint32_t m_CapturePeriod
The duration at which captured profiling messages will be flushed.
const ProfilingDetailsMethod m_OutputNetworkDetailsMethod
std::string m_FileFormat
The format of the file used for outputting profiling data.
std::vector< BackendOptions > m_BackendOptions
Pass backend specific options.
std::unique_ptr< IRuntime, void(*)(IRuntime *runtime)> IRuntimePtr
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< ILocalPacketHandler > ILocalPacketHandlerSharedPtr
ExternalProfilingOptions()
bool m_ProtectedMode
Setting this flag will allow the user to create the Runtime in protected mode.
ExternalProfilingOptions m_ProfilingOptions
std::function< void(LayerGuid guid, unsigned int slotIndex, ITensorHandle *tensorHandle)> DebugCallbackFunction
Define the type of callback for the Debug layer to call.
MemorySource
Define the Memory Source to reduce copies.
INetworkProperties(bool asyncEnabled, MemorySource inputSource, MemorySource outputSource, bool profilingEnabled=false, ProfilingDetailsMethod detailsMethod=ProfilingDetailsMethod::Undefined, bool externalMemoryManagementEnabled=false)
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.
std::string m_OutgoingCaptureFile
Path to a file in which outgoing timeline profiling messages will be stored.
std::shared_ptr< IGpuAccTunedParameters > IGpuAccTunedParametersPtr
The following API is replaced by the backend options API.
std::shared_ptr< IGpuAccTunedParameters > m_GpuAccTunedParameters
If set, uses the GpuAcc tuned parameters from the given object when executing GPU workloads.
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
const MemorySource m_OutputSource
bool m_EnableProfiling
Indicates whether external profiling is enabled or not.
Manages a set of GpuAcc parameters which have been tuned for maximum performance.
bool m_EnableGpuProfiling
Setting this flag will allow the user to obtain GPU profiling information from the runtime.