ONE - On-device Neural Engine
|
Convolution Kernel (in CNN) values. More...
#include <KernelObject.h>
Public Member Functions | |
KernelObject ()=default | |
KernelObject (const nncc::core::ADT::kernel::Shape &shape) | |
virtual | ~KernelObject () |
Object::Kind | kind (void) const override |
KernelObject * | asKernel (void) override |
const KernelObject * | asKernel (void) const override |
const nncc::core::ADT::kernel::Shape & | shape (void) const |
ElemID | at (uint32_t n, uint32_t ch, uint32_t row, uint32_t col) const |
const KernelLayout * | layout (void) const |
void | layout (std::unique_ptr< KernelLayout > &&l) |
Public Member Functions inherited from coco::Object | |
Object () | |
virtual | ~Object ()=default |
coco::Bag * | bag (void) const |
void | bag (coco::Bag *bag) |
virtual FeatureObject * | asFeature (void) |
virtual const FeatureObject * | asFeature (void) const |
Def * | def (void) const |
const UseSet * | uses (void) const |
Public Member Functions inherited from coco::Entity | |
virtual | ~Entity ()=default |
Module * | module (void) const |
Additional Inherited Members | |
Public Types inherited from coco::Object | |
enum class | Kind { Unknown , Feature , Kernel } |
using | ConsumerSet = std::set< Consumer * > |
Convolution Kernel (in CNN) values.
Definition at line 33 of file KernelObject.h.
|
default |
|
explicit |
Definition at line 25 of file KernelObject.cpp.
References coco::KernelLayouts::Generic::create(), and shape().
|
virtual |
Definition at line 30 of file KernelObject.cpp.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
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.
|
inlineoverridevirtual |
Reimplemented from coco::Object.
Definition at line 43 of file KernelObject.h.
|
inline |
Definition at line 57 of file KernelObject.h.
|
inline |
Definition at line 56 of file KernelObject.h.
const nncc::core::ADT::kernel::Shape & coco::KernelObject::shape | ( | void | ) | const |
Definition at line 35 of file KernelObject.cpp.
Referenced by RandomDataGenerator.RandomDataGenerator::_gen_float32(), RandomDataGenerator.RandomDataGenerator::_gen_int16(), RandomDataGenerator.RandomDataGenerator::_gen_uint8(), dump(), and KernelObject().