ONE - On-device Neural Engine
|
BHWC Feature Layout. More...
#include <FeatureLayouts.h>
Public Member Functions | |
const FeatureLayout::ID * | id (void) const override |
const FeatureShape & | shape (void) const override |
coco::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< BHWC > | create (const nncc::core::ADT::feature::Shape &shape) |
static std::unique_ptr< BHWC > | create (const FeatureShape &shape) |
BHWC Feature Layout.
Definition at line 61 of file FeatureLayouts.h.
|
overridevirtual |
Implements coco::FeatureLayout.
Definition at line 79 of file FeatureLayouts.cpp.
References nncc::core::ADT::feature::num_elements(), and offset().
|
static |
Definition at line 96 of file FeatureLayouts.cpp.
References shape().
|
static |
Definition at line 90 of file FeatureLayouts.cpp.
References shape().
Referenced by tflimport::AvgPool2DGraphBuilder::build(), tflimport::ConcatenationGraphBuilder::build(), tflimport::DivGraphBuilder::build(), tflimport::MaxPool2DGraphBuilder::build(), tflimport::ReLUGraphBuilder::build(), tflimport::ReLU6GraphBuilder::build(), tflimport::SubGraphBuilder::build(), tflimport::Conv2DGraphBuilder::build(), tflimport::DepthwiseConv2DGraphBuilder::build(), and tflimport::build_activation().
|
inlineoverridevirtual |
Implements coco::FeatureLayout.
Definition at line 71 of file FeatureLayouts.h.
References uid().
Referenced by uid().
|
inlineoverridevirtual |
Implements coco::FeatureLayout.
Definition at line 73 of file FeatureLayouts.h.
Referenced by RandomDataGenerator.RandomDataGenerator::_gen_float32(), RandomDataGenerator.RandomDataGenerator::_gen_int16(), RandomDataGenerator.RandomDataGenerator::_gen_uint8(), create(), and create().
|
static |
Definition at line 70 of file FeatureLayouts.cpp.
References id().
Referenced by id(), and enco::reduce_identical_object().