ONE - On-device Neural Engine
Loading...
Searching...
No Matches
ANNConv2D Class Reference

2D Convolution through Andoird NN API More...

#include <IR.h>

Collaboration diagram for ANNConv2D:

Public Member Functions

 ANNConv2D ()
 
coco::Instrloc (void) override
 
coco::Objectofm (void) const
 
void ofm (coco::Object *o)
 
coco::Objectifm (void) const
 
void ifm (coco::Object *o)
 
coco::Objectker (void) const
 
void ker (coco::Object *o)
 
coco::Objectbias (void) const
 
void bias (coco::Object *o)
 
coco::Padding2Dpad (void)
 
const coco::Padding2Dpad (void) const
 
coco::Stride2Dstride (void)
 
const coco::Stride2Dstride (void) const
 
- Public Member Functions inherited from coco::Instr
 Instr ()=default
 
 Instr (const Instr &)=delete
 
 Instr (Instr &&)=delete
 
virtual ~Instr ()
 
template<typename T >
accept (IVisitor< T > *v) const
 
template<typename T >
accept (IVisitor< T > &v) const
 
template<typename T >
accept (IVisitor< T > &&v) const
 
const InstrIndexindex (void) const
 
- Public Member Functions inherited from coco::DLinkedList< Child, Parent >::Node
 Node ()
 
virtual ~Node ()
 
Parent * parent (void) const
 
Child * prev (void) const
 
Child * next (void) const
 
void insertBefore (Node *next)
 
void insertAfter (Node *prev)
 
void detach (void)
 
- Public Member Functions inherited from coco::Entity
virtual ~Entity ()=default
 
Modulemodule (void) const
 
- Public Member Functions inherited from coco::Object::Producer
virtual ~Producer ()=default
 
- Public Member Functions inherited from coco::Bag::Updater
virtual ~Updater ()=default
 
- Public Member Functions inherited from coco::Locatable
virtual ~Locatable ()=default
 
- Public Member Functions inherited from coco::Object::Consumer
virtual ~Consumer ()=default
 
- Public Member Functions inherited from coco::Bag::Reader
virtual ~Reader ()=default
 

Detailed Description

2D Convolution through Andoird NN API

TODO Support FusedActivation

Definition at line 27 of file IR.h.

Constructor & Destructor Documentation

◆ ANNConv2D()

ANNConv2D::ANNConv2D ( )
inline

Definition at line 30 of file IR.h.

30 : _ofm{this}, _ifm{this}, _ker{this}, _bias{this}
31 {
32 // DO NOTHING
33 }

Member Function Documentation

◆ bias() [1/2]

void ANNConv2D::bias ( coco::Object o)
inline

Definition at line 54 of file IR.h.

54{ _bias.value(o); }
Object * value(void) const
Definition Use.h:37

References coco::Use::value().

◆ bias() [2/2]

coco::Object * ANNConv2D::bias ( void  ) const
inline

Currently, this "bias" is a Feature object with channel-wise layout

NOTE This design is subject to change

Definition at line 53 of file IR.h.

53{ return _bias.value(); }

References coco::Use::value().

◆ ifm() [1/2]

void ANNConv2D::ifm ( coco::Object o)
inline

Definition at line 43 of file IR.h.

43{ _ifm.value(o); }

References coco::Use::value().

◆ ifm() [2/2]

coco::Object * ANNConv2D::ifm ( void  ) const
inline

Definition at line 42 of file IR.h.

42{ return _ifm.value(); }

References coco::Use::value().

◆ ker() [1/2]

void ANNConv2D::ker ( coco::Object o)
inline

Definition at line 46 of file IR.h.

46{ _ker.value(o); }

References coco::Use::value().

◆ ker() [2/2]

coco::Object * ANNConv2D::ker ( void  ) const
inline

Definition at line 45 of file IR.h.

45{ return _ker.value(); }

References coco::Use::value().

◆ loc()

coco::Instr * ANNConv2D::loc ( void  )
inlineoverridevirtual

Implements coco::Locatable.

Definition at line 36 of file IR.h.

36{ return this; }

◆ ofm() [1/2]

void ANNConv2D::ofm ( coco::Object o)
inline

Definition at line 40 of file IR.h.

40{ _ofm.value(o); }
Object * value(void) const
Definition Def.h:37

References coco::Def::value().

◆ ofm() [2/2]

coco::Object * ANNConv2D::ofm ( void  ) const
inline

Definition at line 39 of file IR.h.

39{ return _ofm.value(); }

References coco::Def::value().

◆ pad() [1/2]

coco::Padding2D * ANNConv2D::pad ( void  )
inline

Definition at line 57 of file IR.h.

57{ return &_pad; }

◆ pad() [2/2]

const coco::Padding2D * ANNConv2D::pad ( void  ) const
inline

Definition at line 58 of file IR.h.

58{ return &_pad; }

◆ stride() [1/2]

coco::Stride2D * ANNConv2D::stride ( void  )
inline

Definition at line 60 of file IR.h.

60{ return &_stride; }

◆ stride() [2/2]

const coco::Stride2D * ANNConv2D::stride ( void  ) const
inline

Definition at line 61 of file IR.h.

61{ return &_stride; }

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