ONE - On-device Neural Engine
Loading...
Searching...
No Matches
nnfw::misc::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 nnfw::misc::feature::Reader< T >

Class reads values of feature The interface class.

Definition at line 39 of file Reader.h.

Constructor & Destructor Documentation

◆ ~Reader()

template<typename T >
virtual nnfw::misc::feature::Reader< T >::~Reader ( )
virtualdefault

Destruct Reader object using default destructor.

Member Function Documentation

◆ at() [1/2]

template<typename T >
virtual T nnfw::misc::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

◆ at() [2/2]

template<typename T >
virtual T nnfw::misc::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 nnfw::misc::feature::Object< T >.


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