ArmNN
 24.02
ExecutionFrame Class Reference

#include <ExecutionFrame.hpp>

Inheritance diagram for ExecutionFrame:
[legend]
Collaboration diagram for ExecutionFrame:
[legend]

Public Member Functions

 ExecutionFrame ()
 
IExecutionFrameExecuteWorkloads (IExecutionFrame *previousFrame) override
 
void PostAllocationConfigure () override
 
void RegisterDebugCallback (const DebugCallbackFunction &func) override
 
void AddWorkloadToQueue (std::unique_ptr< IWorkload > workload)
 
void SetNextExecutionFrame (IExecutionFrame *nextExecutionFrame)
 
- Public Member Functions inherited from IExecutionFrame
virtual ~IExecutionFrame ()
 

Detailed Description

Definition at line 27 of file ExecutionFrame.hpp.

Constructor & Destructor Documentation

◆ ExecutionFrame()

Definition at line 12 of file ExecutionFrame.cpp.

12 {}

Member Function Documentation

◆ AddWorkloadToQueue()

void AddWorkloadToQueue ( std::unique_ptr< IWorkload workload)

Definition at line 40 of file ExecutionFrame.cpp.

41 {
42  m_WorkloadQueue.push_back(std::move(workload));
43 }

◆ ExecuteWorkloads()

IExecutionFrame * ExecuteWorkloads ( IExecutionFrame previousFrame)
overridevirtual

Implements IExecutionFrame.

Definition at line 14 of file ExecutionFrame.cpp.

15 {
16  IgnoreUnused(previousFrame);
17  for (auto& workload: m_WorkloadQueue)
18  {
19  workload->Execute();
20  }
21  return m_NextExecutionFrame;
22 }

References armnn::IgnoreUnused().

◆ PostAllocationConfigure()

void PostAllocationConfigure ( )
overridevirtual

Reimplemented from IExecutionFrame.

Definition at line 24 of file ExecutionFrame.cpp.

25 {
26  for (auto&& workloadPtr: m_WorkloadQueue)
27  {
28  workloadPtr.get()->PostAllocationConfigure();
29  }
30 }

◆ RegisterDebugCallback()

void RegisterDebugCallback ( const DebugCallbackFunction func)
overridevirtual

Reimplemented from IExecutionFrame.

Definition at line 32 of file ExecutionFrame.cpp.

33 {
34  for (auto&& workloadPtr: m_WorkloadQueue)
35  {
36  workloadPtr.get()->RegisterDebugCallback(func);
37  }
38 }

◆ SetNextExecutionFrame()

void SetNextExecutionFrame ( IExecutionFrame nextExecutionFrame)

Definition at line 45 of file ExecutionFrame.cpp.

46 {
47  m_NextExecutionFrame = nextExecutionFrame;
48 }

The documentation for this class was generated from the following files:
armnn::IgnoreUnused
void IgnoreUnused(Ts &&...)
Definition: IgnoreUnused.hpp:14