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

#include <Pad.h>

Collaboration diagram for onert::ir::operation::Pad:

Public Types

enum  Input { INPUT = 0 , PAD = 1 , VALUE = 2 }
 

Public Member Functions

 Pad (const OperandIndexSequence &inputs, const OperandIndexSequence &outputs)
 
void accept (OperationVisitor &v) const override
 
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 Pad.h.

Member Enumeration Documentation

◆ Input

Enumerator
INPUT 
PAD 
VALUE 

Definition at line 32 of file Pad.h.

33 {
34 INPUT = 0,
35 PAD = 1,
36 VALUE = 2
37 };

Constructor & Destructor Documentation

◆ Pad()

onert::ir::operation::Pad::Pad ( const OperandIndexSequence inputs,
const OperandIndexSequence outputs 
)

Definition at line 32 of file Pad.cc.

34{
35}
static OperandConstraint createInRange(uint32_t begin, uint32_t end)

Member Function Documentation

◆ accept()

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

Implements onert::ir::IOperation.

Reimplemented in onert::ir::train::operation::Pad.

Definition at line 28 of file Pad.cc.

28{ v.visit(*this); }

◆ opcode()

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

Implements onert::ir::IOperation.

Definition at line 44 of file Pad.h.

44{ return OpCode::Pad; }

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