15 namespace experimental
18 struct WorkingMemDescriptor;
36 virtual void Free() = 0;
virtual NetworkId GetNetworkId()=0
Returns the NetworkId of the Network that this IWorkingMemHandle works with.
Copyright (c) 2021 ARM Limited and Contributors.
virtual bool IsAllocated()=0
IsAllocated returns true if the backing memory is currently allocated. The mutex must be locked...
virtual void Allocate()=0
Allocate the backing memory required for execution.
virtual std::mutex & GetMutex()=0
Get a mutex which can be used for synchronizing access to the WorkingMemHandle object.
virtual ~IWorkingMemHandle()
virtual void Free()=0
Free the backing memory required for execution. The mutex must be locked.
virtual profiling::ProfilingGuid GetInferenceId()=0
Returns the InferenceId of the Inference that this IWorkingMemHandle works with.
virtual WorkingMemDescriptor & GetWorkingMemDescriptorAt(unsigned int id)=0
Get the WorkingMemDescriptor at an index.
virtual WorkingMemDescriptor & GetWorkingMemDescriptor(LayerGuid id)=0
Get the WorkingMemDescriptor for a Layer. The mutex must be locked.