ONE - On-device Neural Engine
Loading...
Searching...
No Matches
coco::KernelObject Class Referencefinal

Convolution Kernel (in CNN) values. More...

#include <KernelObject.h>

Collaboration diagram for coco::KernelObject:

Public Member Functions

 KernelObject ()=default
 
 KernelObject (const nncc::core::ADT::kernel::Shape &shape)
 
virtual ~KernelObject ()
 
Object::Kind kind (void) const override
 
KernelObjectasKernel (void) override
 
const KernelObjectasKernel (void) const override
 
const nncc::core::ADT::kernel::Shapeshape (void) const
 
ElemID at (uint32_t n, uint32_t ch, uint32_t row, uint32_t col) const
 
const KernelLayoutlayout (void) const
 
void layout (std::unique_ptr< KernelLayout > &&l)
 
- Public Member Functions inherited from coco::Object
 Object ()
 
virtual ~Object ()=default
 
coco::Bagbag (void) const
 
void bag (coco::Bag *bag)
 
virtual FeatureObjectasFeature (void)
 
virtual const FeatureObjectasFeature (void) const
 
Defdef (void) const
 
const UseSetuses (void) const
 
- Public Member Functions inherited from coco::Entity
virtual ~Entity ()=default
 
Modulemodule (void) const
 

Additional Inherited Members

- Public Types inherited from coco::Object
enum class  Kind { Unknown , Feature , Kernel }
 
using ConsumerSet = std::set< Consumer * >
 

Detailed Description

Convolution Kernel (in CNN) values.

Definition at line 33 of file KernelObject.h.

Constructor & Destructor Documentation

◆ KernelObject() [1/2]

coco::KernelObject::KernelObject ( )
default

◆ KernelObject() [2/2]

coco::KernelObject::KernelObject ( const nncc::core::ADT::kernel::Shape shape)
explicit

Definition at line 25 of file KernelObject.cpp.

26{
28}
static std::unique_ptr< Generic > create(const nncc::core::ADT::kernel::Shape &shape)
const nncc::core::ADT::kernel::Shape & shape(void) const

References coco::KernelLayouts::Generic::create(), and shape().

◆ ~KernelObject()

coco::KernelObject::~KernelObject ( )
virtual

Definition at line 30 of file KernelObject.cpp.

31{
32 // DO NOTHING
33}

Member Function Documentation

◆ asKernel() [1/2]

const KernelObject * coco::KernelObject::asKernel ( void  ) const
inlineoverridevirtual

Reimplemented from coco::Object.

Definition at line 47 of file KernelObject.h.

47{ return this; }

◆ asKernel() [2/2]

KernelObject * coco::KernelObject::asKernel ( void  )
inlineoverridevirtual

Reimplemented from coco::Object.

Definition at line 46 of file KernelObject.h.

46{ return this; }

◆ at()

ElemID coco::KernelObject::at ( uint32_t  n,
uint32_t  ch,
uint32_t  row,
uint32_t  col 
) const

Definition at line 37 of file KernelObject.cpp.

38{
39 return _layout->at(n, ch, row, col);
40}

◆ kind()

Object::Kind coco::KernelObject::kind ( void  ) const
inlineoverridevirtual

Reimplemented from coco::Object.

Definition at line 43 of file KernelObject.h.

43{ return Object::Kind::Kernel; }

◆ layout() [1/2]

void coco::KernelObject::layout ( std::unique_ptr< KernelLayout > &&  l)
inline

Definition at line 57 of file KernelObject.h.

57{ _layout = std::move(l); }

◆ layout() [2/2]

const KernelLayout * coco::KernelObject::layout ( void  ) const
inline

Definition at line 56 of file KernelObject.h.

56{ return _layout.get(); }

◆ shape()


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