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