ONE - On-device Neural Engine
|
#include <Reader.h>
Public Types | |
using | Strides = ir::FeatureShape |
Public Member Functions | |
Reader (const ir::FeatureShape &shape, const Strides &strides, const T *ptr, size_t len) | |
Reader (backend::ITensor *tensor) | |
T | at (uint32_t batch, uint32_t ch, uint32_t row, uint32_t col) const final |
Get the value used by four indexes. | |
T | at (uint32_t ch, uint32_t row, uint32_t col) const final |
Get the value used by three indexes. | |
Public Member Functions inherited from onert::exec::feature::Reader< T > | |
virtual | ~Reader ()=default |
Destruct Reader object using default destructor. | |
Protected Member Functions | |
const T & | getRef (uint32_t batch, uint32_t ch, uint32_t row, uint32_t col) const |
using onert::exec::feature::nchw::Reader< T >::Strides = ir::FeatureShape |
|
inline |
Definition at line 41 of file Reader.h.
References onert::ir::FeatureShape::C, onert::ir::FeatureShape::H, onert::ir::FeatureShape::N, and onert::ir::FeatureShape::W.
|
inline |
|
inlinefinalvirtual |
Get the value used by four indexes.
[in] | batch | The batch index |
[in] | ch | The depth index |
[in] | row | The height index |
[in] | col | The width index |
Implements onert::exec::feature::Reader< T >.
Definition at line 68 of file Reader.h.
|
inlinefinalvirtual |
Get the value used by three indexes.
[in] | ch | The depth index |
[in] | row | The height index |
[in] | col | The width index |
Implements onert::exec::feature::Reader< T >.
Definition at line 72 of file Reader.h.
|
inlineprotected |
Definition at line 75 of file Reader.h.
References offset().
Referenced by onert::exec::feature::nchw::View< T >::at(), and onert::exec::feature::nchw::View< T >::at().