ONE - On-device Neural Engine
Loading...
Searching...
No Matches
onert::ir::operation::DetectionPostProcess Class Reference

#include <DetectionPostProcess.h>

Collaboration diagram for onert::ir::operation::DetectionPostProcess:

Data Structures

struct  Param
 
struct  Scale
 

Public Types

enum  Input { BOXES = 0 , SCORES = 1 , INPUT_ANCHORS = 2 }
 
enum  Output { BOX_COORDS = 0 , BOX_CLASSES = 1 , BOX_SCORES = 2 , NUM_SELECTED = 3 }
 

Public Member Functions

 DetectionPostProcess (const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param &param)
 
void accept (OperationVisitor &v) const override
 
std::string getName () const
 
const Paramparam () const
 
OpCode opcode () const final
 
- Public Member Functions inherited from onert::ir::Operation
 Operation (OperandConstraint input_constr, const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, OperandConstraint output_constr=OperandConstraint::createAny())
 
 Operation (OperandConstraint input_constr, OperandConstraint output_constr=OperandConstraint::createAny())
 
 Operation (const Operation &)=default
 
 Operation (Operation &&)=default
 
Operationoperator= (const Operation &)=default
 
Operationoperator= (Operation &&)=default
 
virtual ~Operation ()
 
void replaceInputs (const OperandIndex &from, const OperandIndex &to) override
 
void replaceOutputs (const OperandIndex &from, const OperandIndex &to) override
 
OperandIndexSequencegetInputs ()
 
const OperandIndexSequencegetInputs () const override
 
const OperandIndexSequencegetOutputs () const override
 
void setInputs (const OperandIndexSequence &indexes)
 
void setOutputs (const OperandIndexSequence &indexes)
 
- Public Member Functions inherited from onert::ir::IOperation
virtual ~IOperation ()=default
 
virtual std::string name () const
 

Detailed Description

Definition at line 29 of file DetectionPostProcess.h.

Member Enumeration Documentation

◆ Input

◆ Output

Constructor & Destructor Documentation

◆ DetectionPostProcess()

onert::ir::operation::DetectionPostProcess::DetectionPostProcess ( const OperandIndexSequence inputs,
const OperandIndexSequence outputs,
const Param param 
)

Definition at line 27 of file DetectionPostProcess.cc.

29 : Operation(OperandConstraint::createExact(3u), inputs, outputs), _param(param)
30{
31}
static OperandConstraint createExact(uint32_t exact)
const Param & param() const

Member Function Documentation

◆ accept()

void onert::ir::operation::DetectionPostProcess::accept ( OperationVisitor v) const
overridevirtual

Implements onert::ir::IOperation.

Definition at line 33 of file DetectionPostProcess.cc.

33{ v.visit(*this); }

◆ getName()

std::string onert::ir::operation::DetectionPostProcess::getName ( ) const
inline

Definition at line 76 of file DetectionPostProcess.h.

76{ return "DetectionPostProcess"; }

◆ opcode()

OpCode onert::ir::operation::DetectionPostProcess::opcode ( ) const
inlinefinalvirtual

Implements onert::ir::IOperation.

Definition at line 80 of file DetectionPostProcess.h.

80{ return OpCode::DetectionPostProcess; }

◆ param()

const Param & onert::ir::operation::DetectionPostProcess::param ( ) const
inline

Definition at line 79 of file DetectionPostProcess.h.

79{ return _param; }

Referenced by onert::backend::cpu::KernelGenerator::visit(), and onert::ir::OperationValidator::visit().


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