ONE - On-device Neural Engine
|
Class to iterate Callable with Index of feature. More...
#include <IndexIterator.h>
Public Member Functions | |
IndexIterator (const ir::FeatureShape &shape) | |
Construct IndexIterator object with Shape of feature. | |
template<typename Callable > | |
IndexIterator & | iter (Callable cb) |
Call a function iterated. | |
Class to iterate Callable with Index of feature.
Definition at line 37 of file IndexIterator.h.
|
inline |
Construct IndexIterator object with Shape of feature.
[in] | shape | Shape reference of feature |
Definition at line 44 of file IndexIterator.h.
|
inline |
Call a function iterated.
[in] | cb | A callback function |
Definition at line 55 of file IndexIterator.h.
References onert::ir::FeatureShape::C, onert::ir::FeatureShape::H, onert::ir::FeatureShape::N, and onert::ir::FeatureShape::W.
Referenced by onert::exec::feature::operator<<().