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

#include <OperandConstraint.h>

Public Member Functions

bool check (uint32_t ind) const
 

Static Public Member Functions

static OperandConstraint createAny ()
 
static OperandConstraint createExact (uint32_t exact)
 
static OperandConstraint createAtMost (uint32_t end)
 
static OperandConstraint createAtLeast (uint32_t begin)
 
static OperandConstraint createInRange (uint32_t begin, uint32_t end)
 

Detailed Description

Definition at line 29 of file OperandConstraint.h.

Member Function Documentation

◆ check()

bool onert::ir::OperandConstraint::check ( uint32_t  ind) const
inline

Definition at line 48 of file OperandConstraint.h.

48{ return _begin <= ind && ind <= _end; }

Referenced by onert::ir::Operation::setInputs(), and onert::ir::Operation::setOutputs().

◆ createAny()

static OperandConstraint onert::ir::OperandConstraint::createAny ( )
inlinestatic

Definition at line 35 of file OperandConstraint.h.

35{ return OperandConstraint{0u, INF}; }

◆ createAtLeast()

static OperandConstraint onert::ir::OperandConstraint::createAtLeast ( uint32_t  begin)
inlinestatic

Definition at line 38 of file OperandConstraint.h.

38{ return OperandConstraint{begin, INF}; }
int32_t begin[5]
Definition Slice.cpp:33

References begin.

◆ createAtMost()

static OperandConstraint onert::ir::OperandConstraint::createAtMost ( uint32_t  end)
inlinestatic

Definition at line 37 of file OperandConstraint.h.

37{ return OperandConstraint{0u, end}; }
ShapeIterator end(const Shape &s)

◆ createExact()

static OperandConstraint onert::ir::OperandConstraint::createExact ( uint32_t  exact)
inlinestatic

Definition at line 36 of file OperandConstraint.h.

36{ return OperandConstraint{exact, exact}; }

◆ createInRange()

static OperandConstraint onert::ir::OperandConstraint::createInRange ( uint32_t  begin,
uint32_t  end 
)
inlinestatic

Definition at line 39 of file OperandConstraint.h.

40 {
41 return OperandConstraint{begin, end};
42 }

References begin.


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