ONE - On-device Neural Engine
|
BCHW Feature Layout. More...
#include <FeatureLayouts.h>
Public Member Functions | |
const FeatureLayout::ID * | id (void) const override |
const FeatureShape & | shape (void) const override |
ElemID | at (uint32_t b, uint32_t ch, uint32_t row, uint32_t col) const override |
Public Member Functions inherited from coco::FeatureLayout | |
virtual | ~FeatureLayout ()=default |
uint32_t | batch (void) const |
uint32_t | depth (void) const |
uint32_t | height (void) const |
uint32_t | width (void) const |
Static Public Member Functions | |
static const FeatureLayout::ID * | uid (void) |
static std::unique_ptr< BCHW > | create (const nncc::core::ADT::feature::Shape &shape) |
BCHW Feature Layout.
Definition at line 35 of file FeatureLayouts.h.
|
overridevirtual |
Implements coco::FeatureLayout.
Definition at line 43 of file FeatureLayouts.cpp.
References nncc::core::ADT::feature::num_elements(), and offset().
|
static |
Definition at line 53 of file FeatureLayouts.cpp.
References shape().
Referenced by caffeimport::BatchNormBuilder::build(), caffeimport::ConcatBuilder::build(), caffeimport::ConvolutionBuilder::build(), caffeimport::PoolingBuilder::build(), caffeimport::ReLUBuilder::build(), and caffeimport::ScaleBuilder::build().
|
inlineoverridevirtual |
Implements coco::FeatureLayout.
Definition at line 45 of file FeatureLayouts.h.
References uid().
Referenced by uid().
|
inlineoverridevirtual |
Implements coco::FeatureLayout.
Definition at line 47 of file FeatureLayouts.h.
Referenced by RandomDataGenerator.RandomDataGenerator::_gen_float32(), RandomDataGenerator.RandomDataGenerator::_gen_int16(), RandomDataGenerator.RandomDataGenerator::_gen_uint8(), and create().
|
static |
Definition at line 34 of file FeatureLayouts.cpp.
References id().
Referenced by id().