ONE - On-device Neural Engine
Loading...
Searching...
No Matches
onert::exec::feature::Reader< T > Struct Template Referenceabstract

Class reads values of feature The interface class. More...

#include <Reader.h>

Public Member Functions

virtual ~Reader ()=default
 Destruct Reader object using default destructor.
 
virtual T at (uint32_t ch, uint32_t row, uint32_t col) const =0
 Get the value used by three indexes.
 
virtual T at (uint32_t batch, uint32_t ch, uint32_t row, uint32_t col) const =0
 Get the value used by four indexes.
 

Detailed Description

template<typename T>
struct onert::exec::feature::Reader< T >

Class reads values of feature The interface class.

Definition at line 38 of file Reader.h.

Constructor & Destructor Documentation

◆ ~Reader()

template<typename T >
virtual onert::exec::feature::Reader< T >::~Reader ( )
virtualdefault

Destruct Reader object using default destructor.

Member Function Documentation

◆ at() [1/2]

template<typename T >
virtual T onert::exec::feature::Reader< T >::at ( uint32_t  batch,
uint32_t  ch,
uint32_t  row,
uint32_t  col 
) const
pure virtual

Get the value used by four indexes.

Parameters
[in]batchThe batch index
[in]chThe depth index
[in]rowThe height index
[in]colThe width index
Returns
The value at the offset

Implemented in onert::exec::feature::nchw::Reader< T >, and onert::exec::feature::nhwc::Reader< T >.

◆ at() [2/2]

template<typename T >
virtual T onert::exec::feature::Reader< T >::at ( uint32_t  ch,
uint32_t  row,
uint32_t  col 
) const
pure virtual

Get the value used by three indexes.

Parameters
[in]chThe depth index
[in]rowThe height index
[in]colThe width index
Returns
The value at the offset

Implemented in onert::exec::feature::nchw::Reader< T >, and onert::exec::feature::nhwc::Reader< T >.


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