ONE - On-device Neural Engine
Loading...
Searching...
No Matches
nnfw::misc::kernel Namespace Reference

Data Structures

class  IndexIterator
 Class to iterate Callable with Index of kernel. More...
 
struct  Reader
 Structure to Reader. More...
 
struct  Shape
 Structure to Shape. More...
 

Functions

IndexIterator iterate (const Shape &shape)
 Create an object of IndexIterator for kernel.
 
template<typename Callable >
IndexIteratoroperator<< (IndexIterator &&it, Callable cb)
 Call a function iterated using IndexIterator of kernel Overloaded operator<<.
 

Function Documentation

◆ iterate()

IndexIterator nnfw::misc::kernel::iterate ( const Shape shape)
inline

Create an object of IndexIterator for kernel.

Parameters
[in]shapereference of feature
Returns
Created IndexIterator object

Definition at line 84 of file IndexIterator.h.

84{ return IndexIterator{shape}; }
Class to iterate Callable with Index of kernel.

◆ operator<<()

template<typename Callable >
IndexIterator & nnfw::misc::kernel::operator<< ( IndexIterator &&  it,
Callable  cb 
)

Call a function iterated using IndexIterator of kernel Overloaded operator<<.

Parameters
[in]itAn IndexIterator reference
[in]cbA callback function
Returns
Created IndexIterator object

Definition at line 93 of file IndexIterator.h.

94{
95 return it.iter(cb);
96}
IndexIterator & iter(Callable cb)
Call a function iterated.

References nnfw::misc::kernel::IndexIterator::iter().