ONE - On-device Neural Engine
Loading...
Searching...
No Matches
onert::exec::Job Class Reference

#include <Job.h>

Public Member Functions

 Job (uint32_t index, FunctionSequence *fn_seq)
 Constructs a Job object.
 
void run ()
 Execute the compiled code.
 
uint32_t index () const
 Return job index.
 
FunctionSequencefn_seq ()
 Return the function to be executed.
 

Detailed Description

Definition at line 32 of file Job.h.

Constructor & Destructor Documentation

◆ Job()

onert::exec::Job::Job ( uint32_t  index,
FunctionSequence fn_seq 
)

Constructs a Job object.

Parameters
indexOperation index for this job
fn_seqcompiled code to run this job
inputsInput operand list
outputsOutput operand list

Definition at line 28 of file Job.cc.

28: _index{index}, _fn_seq{fn_seq} {}
FunctionSequence * fn_seq()
Return the function to be executed.
Definition Job.h:59
uint32_t index() const
Return job index.
Definition Job.h:53

Member Function Documentation

◆ fn_seq()

FunctionSequence * onert::exec::Job::fn_seq ( )
inline

Return the function to be executed.

Returns
Pointer of the function

Definition at line 59 of file Job.h.

59{ return _fn_seq; }

◆ index()

uint32_t onert::exec::Job::index ( ) const
inline

Return job index.

Returns
Job index

Definition at line 53 of file Job.h.

53{ return _index; }

◆ run()

void onert::exec::Job::run ( )

Execute the compiled code.

Definition at line 30 of file Job.cc.

30{ _fn_seq->run(); }

References onert::exec::FunctionSequence::run().

Referenced by package.infer.session::inference().


The documentation for this class was generated from the following files: