ONE - On-device Neural Engine
|
NHWC 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< NHWC > | create (const nncc::core::ADT::kernel::Shape &shape) |
NHWC Kernel Layout.
Definition at line 61 of file KernelLayouts.h.
|
overridevirtual |
|
static |
Definition at line 84 of file KernelLayouts.cpp.
References shape().
Referenced by tflimport::Conv2DGraphBuilder::build(), and tflimport::DepthwiseConv2DGraphBuilder::build().
|
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 71 of file KernelLayouts.h.
References uid().
Referenced by uid().
|
inlineoverridevirtual |
Implements coco::KernelLayout.
Definition at line 73 of file KernelLayouts.h.
Referenced by RandomDataGenerator.RandomDataGenerator::_gen_float32(), RandomDataGenerator.RandomDataGenerator::_gen_int16(), RandomDataGenerator.RandomDataGenerator::_gen_uint8(), and create().
|
static |
Definition at line 69 of file KernelLayouts.cpp.
References id().
Referenced by id().