ONE - On-device Neural Engine
Loading...
Searching...
No Matches
loco::FeatureIndex Class Referencefinal

Feature Index. More...

#include <FeatureIndex.h>

Public Member Functions

 FeatureIndex ()=default
 
const uint32_t & batch (void) const
 
uint32_t & batch (void)
 
const uint32_t & channel (void) const
 
uint32_t & channel (void)
 
const uint32_t & row (void) const
 
uint32_t & row (void)
 
const uint32_t & column (void) const
 
uint32_t & column (void)
 

Detailed Description

Feature Index.

Feature Index indicates an "element" in a given feature map.

Let us assume that there is a feature map F and S denotes its shape (of FeatureShape type).

Then, any valid feature index I satisfies the following invariants:

  • 0 <= I.batch() < S.count()
  • 0 <= I.channel() < S.depth()
  • 0 <= I.row() < S.height()
  • 0 <= I.column() < S.width()

Definition at line 38 of file FeatureIndex.h.

Constructor & Destructor Documentation

◆ FeatureIndex()

loco::FeatureIndex::FeatureIndex ( )
default

Member Function Documentation

◆ batch() [1/2]

uint32_t & loco::FeatureIndex::batch ( void  )
inline

Definition at line 45 of file FeatureIndex.h.

45{ return _batch; }

◆ batch() [2/2]

const uint32_t & loco::FeatureIndex::batch ( void  ) const
inline

◆ channel() [1/2]

uint32_t & loco::FeatureIndex::channel ( void  )
inline

Definition at line 48 of file FeatureIndex.h.

48{ return _channel; }

◆ channel() [2/2]

const uint32_t & loco::FeatureIndex::channel ( void  ) const
inline

◆ column() [1/2]

uint32_t & loco::FeatureIndex::column ( void  )
inline

Definition at line 54 of file FeatureIndex.h.

54{ return _column; }

◆ column() [2/2]

const uint32_t & loco::FeatureIndex::column ( void  ) const
inline

◆ row() [1/2]

uint32_t & loco::FeatureIndex::row ( void  )
inline

Definition at line 51 of file FeatureIndex.h.

51{ return _row; }

◆ row() [2/2]

const uint32_t & loco::FeatureIndex::row ( void  ) const
inline

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