ONE - On-device Neural Engine
|
NCHW Kernel Layout. More...
#include <KernelLayouts.h>
Public Member Functions | |
const KernelLayout::ID * | id (void) const override |
Return the identifier of each layout. | |
const nncc::core::ADT::kernel::Shape & | shape (void) const override |
ElemID | at (uint32_t n, uint32_t ch, uint32_t row, uint32_t col) const override |
Public Member Functions inherited from coco::KernelLayout | |
virtual | ~KernelLayout ()=default |
Static Public Member Functions | |
static const KernelLayout::ID * | uid (void) |
static std::unique_ptr< NCHW > | create (const nncc::core::ADT::kernel::Shape &shape) |
NCHW Kernel Layout.
Definition at line 35 of file KernelLayouts.h.
|
overridevirtual |
|
static |
Definition at line 52 of file KernelLayouts.cpp.
References shape().
|
inlineoverridevirtual |
Return the identifier of each layout.
REQUIRED
Given l1 and l2 of KernelLayout * type, typeid(*l1) == typeif(*l2) SHOULD hold if l1->id() == l2->id() holds.
Implements coco::KernelLayout.
Definition at line 45 of file KernelLayouts.h.
References uid().
Referenced by uid().
|
inlineoverridevirtual |
Implements coco::KernelLayout.
Definition at line 47 of file KernelLayouts.h.
Referenced by RandomDataGenerator.RandomDataGenerator::_gen_float32(), RandomDataGenerator.RandomDataGenerator::_gen_int16(), RandomDataGenerator.RandomDataGenerator::_gen_uint8(), and create().
|
static |
Definition at line 37 of file KernelLayouts.cpp.
References id().
Referenced by id().