ONE - On-device Neural Engine
Loading...
Searching...
No Matches
coco::FeatureLayout Struct Referenceabstract

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 IDid (void) const =0
 
virtual const FeatureShapeshape (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
 

Detailed Description

A FeatureLayout connects each feature index to a Bag element.

NOTE FeatureLayout is an immutable interface

Definition at line 31 of file FeatureLayout.h.

Constructor & Destructor Documentation

◆ ~FeatureLayout()

virtual coco::FeatureLayout::~FeatureLayout ( )
virtualdefault

Member Function Documentation

◆ at()

virtual ElemID coco::FeatureLayout::at ( uint32_t  b,
uint32_t  ch,
uint32_t  row,
uint32_t  col 
) const
pure virtual

◆ batch()

uint32_t coco::FeatureLayout::batch ( void  ) const
inline

Definition at line 44 of file FeatureLayout.h.

44{ return shape().batch(); }
uint32_t batch(void) const
virtual const FeatureShape & shape(void) const =0

References coco::FeatureShape::batch(), and shape().

Referenced by coco::FeatureLayouts::BC::at(), and coco::FeatureLayouts::Generic::reorder().

◆ depth()

uint32_t coco::FeatureLayout::depth ( void  ) const
inline

Definition at line 45 of file FeatureLayout.h.

45{ return shape().depth(); }
uint32_t depth(void) const
Definition Shape.h:44

References nncc::core::ADT::feature::Shape::depth(), and shape().

◆ height()

uint32_t coco::FeatureLayout::height ( void  ) const
inline

Definition at line 46 of file FeatureLayout.h.

46{ return shape().height(); }
uint32_t height(void) const
Definition Shape.h:45

References nncc::core::ADT::feature::Shape::height(), and shape().

◆ id()

virtual const ID * coco::FeatureLayout::id ( void  ) const
pure virtual

◆ shape()

◆ width()

uint32_t coco::FeatureLayout::width ( void  ) const
inline

Definition at line 47 of file FeatureLayout.h.

47{ return shape().width(); }
uint32_t width(void) const
Definition Shape.h:46

References shape(), and nncc::core::ADT::feature::Shape::width().


The documentation for this struct was generated from the following file: