ONE - On-device Neural Engine
|
A FeatureLayout connects each feature index to a Bag element. More...
#include <FeatureLayout.h>
Data Structures | |
struct | ID |
Public Member Functions | |
virtual | ~FeatureLayout ()=default |
virtual const ID * | id (void) const =0 |
virtual const FeatureShape & | shape (void) const =0 |
uint32_t | batch (void) const |
uint32_t | depth (void) const |
uint32_t | height (void) const |
uint32_t | width (void) const |
virtual ElemID | at (uint32_t b, uint32_t ch, uint32_t row, uint32_t col) const =0 |
A FeatureLayout connects each feature index to a Bag element.
NOTE FeatureLayout is an immutable interface
Definition at line 31 of file FeatureLayout.h.
|
virtualdefault |
|
pure virtual |
Implemented in coco::FeatureLayouts::BCHW, coco::FeatureLayouts::BHWC, coco::FeatureLayouts::BC, and coco::FeatureLayouts::Generic.
Referenced by tflimport::SubGraphBuilder::build().
|
inline |
Definition at line 44 of file FeatureLayout.h.
References coco::FeatureShape::batch(), and shape().
Referenced by coco::FeatureLayouts::BC::at(), and coco::FeatureLayouts::Generic::reorder().
|
inline |
Definition at line 45 of file FeatureLayout.h.
References nncc::core::ADT::feature::Shape::depth(), and shape().
|
inline |
Definition at line 46 of file FeatureLayout.h.
References nncc::core::ADT::feature::Shape::height(), and shape().
|
pure virtual |
|
pure virtual |
Implemented in coco::FeatureLayouts::BCHW, coco::FeatureLayouts::BHWC, coco::FeatureLayouts::BC, and coco::FeatureLayouts::Generic.
Referenced by RandomDataGenerator.RandomDataGenerator::_gen_float32(), RandomDataGenerator.RandomDataGenerator::_gen_int16(), RandomDataGenerator.RandomDataGenerator::_gen_uint8(), batch(), caffeimport::ConcatBuilder::build(), tflimport::ConcatenationGraphBuilder::build(), depth(), height(), and width().
|
inline |
Definition at line 47 of file FeatureLayout.h.
References shape(), and nncc::core::ADT::feature::Shape::width().