15 namespace experimental
18 struct WorkingMemDescriptor;
33 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.
profiling::ProfilingGuid LayerGuid
Define LayerGuid type.
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.