ONE - On-device Neural Engine
|
Permutation-based Tensor-to-Matrix converter. More...
#include <PermutingCodec.h>
Public Member Functions | |
PermutingEncoder ()=default | |
PermutingEncoder (const Permutation< Domain::Matrix > &perm) | |
bool | valid (void) const |
MatrixShape | shape (const TensorShape &tensor_shape) const override |
TensorIndex | value (const MatrixIndex &index) const override |
const Permutation< Domain::Matrix > * | perm (void) const |
Permutation< Domain::Matrix > * | perm (void) |
void | perm (const Permutation< Domain::Matrix > &p) |
Public Member Functions inherited from loco::MatrixEncoder | |
virtual | ~MatrixEncoder ()=default |
Permutation-based Tensor-to-Matrix converter.
Definition at line 362 of file PermutingCodec.h.
|
default |
|
inline |
Definition at line 368 of file PermutingCodec.h.
|
inline |
Definition at line 383 of file PermutingCodec.h.
|
inline |
Definition at line 382 of file PermutingCodec.h.
|
inline |
Definition at line 381 of file PermutingCodec.h.
|
overridevirtual |
Implements loco::MatrixEncoder.
Definition at line 570 of file PermutingCodec.cpp.
References loco::TensorShape::dim(), loco::Height, loco::MatrixShape::height(), loco::valid(), loco::Width, and loco::MatrixShape::width().
Referenced by RandomDataGenerator.RandomDataGenerator::_gen_float32(), RandomDataGenerator.RandomDataGenerator::_gen_int16(), and RandomDataGenerator.RandomDataGenerator::_gen_uint8().
bool loco::PermutingEncoder< Domain::Matrix >::valid | ( | void | ) | const |
Definition at line 596 of file PermutingCodec.cpp.
|
overridevirtual |
Implements loco::MatrixEncoder.
Definition at line 582 of file PermutingCodec.cpp.
References nncc::core::ADT::tensor::Index::at(), loco::MatrixIndex::column(), loco::Height, nncc::core::ADT::tensor::Index::resize(), loco::MatrixIndex::row(), loco::valid(), and loco::Width.