17 for (
auto& workload: m_WorkloadQueue)
21 return m_NextExecutionFrame;
26 for (
auto&& workloadPtr: m_WorkloadQueue)
28 workloadPtr.get()->PostAllocationConfigure();
34 for (
auto&& workloadPtr: m_WorkloadQueue)
36 workloadPtr.get()->RegisterDebugCallback(func);
42 m_WorkloadQueue.push_back(std::move(workload));
47 m_NextExecutionFrame = nextExecutionFrame;
IExecutionFrame * ExecuteWorkloads(IExecutionFrame *previousFrame) override
void AddWorkloadToQueue(std::unique_ptr< IWorkload > workload)
void SetNextExecutionFrame(IExecutionFrame *nextExecutionFrame)
void PostAllocationConfigure() override
void RegisterDebugCallback(const DebugCallbackFunction &func) override
ExecutionFrame interface to enqueue a workload computation.
Copyright (c) 2021 ARM Limited and Contributors.
std::function< void(LayerGuid guid, unsigned int slotIndex, ITensorHandle *tensorHandle)> DebugCallbackFunction
Define the type of callback for the Debug layer to call.
void IgnoreUnused(Ts &&...)