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

#include <TopKV2.h>

Collaboration diagram for onert::ir::operation::TopKV2:

Data Structures

struct  Param
 

Public Types

enum  Input { INPUT }
 
enum  Output { OUTPUT_VALUES = 0 , OUTPUT_INDICES }
 

Public Member Functions

 TopKV2 (const OperandIndexSequence &inputs, const OperandIndexSequence &outputs, const Param &param)
 
void accept (OperationVisitor &v) const override
 
OpCode opcode () const final
 
const Paramparam () const
 
- 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 31 of file TopKV2.h.

Member Enumeration Documentation

◆ Input

Enumerator
INPUT 

Definition at line 34 of file TopKV2.h.

35 {
36 INPUT
37 };

◆ Output

Enumerator
OUTPUT_VALUES 
OUTPUT_INDICES 

Definition at line 39 of file TopKV2.h.

Constructor & Destructor Documentation

◆ TopKV2()

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

Definition at line 29 of file TopKV2.cc.

32{
33}
static OperandConstraint createExact(uint32_t exact)
const Param & param() const
Definition TopKV2.h:59

Member Function Documentation

◆ accept()

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

Implements onert::ir::IOperation.

Definition at line 27 of file TopKV2.cc.

27{ v.visit(*this); }

◆ opcode()

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

Implements onert::ir::IOperation.

Definition at line 56 of file TopKV2.h.

56{ return OpCode::TopKV2; }

◆ param()

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

Definition at line 59 of file TopKV2.h.

59{ return _param; }

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