ONE - On-device Neural Engine
|
Class to apply a function with three params: Index
, elements of a tensor at passed index read by Reader
objects.
More...
#include <Zipper.h>
Public Member Functions | |
Zipper (const Shape &shape, const Reader< T > &lhs, const Reader< T > &rhs) | |
Construct a new Zipper object. | |
template<typename Callable > | |
void | zip (Callable cb) const |
Apply cb to all elements of tensors. Elements of two tensors at passed index are read by lhs and rhs . | |
Class to apply a function with three params: Index
, elements of a tensor at passed index read by Reader
objects.
|
inline |
|
inline |
Apply cb
to all elements of tensors. Elements of two tensors at passed index
are read by lhs
and rhs
.
[in] | cb | Function to apply |
Definition at line 63 of file Zipper.h.
References nnfw::misc::tensor::iterate().
Referenced by nnfw::misc::tensor::operator<<().