ONE - On-device Neural Engine
|
Permutation-based Matrix-to-Tensor converter. More...
#include <PermutingCodec.h>
Public Member Functions | |
PermutingDecoder ()=default | |
PermutingDecoder (const Permutation< Domain::Matrix > &perm) | |
bool | valid (void) const |
TensorShape | shape (const MatrixShape &tensor_shape) const override |
MatrixIndex | value (const TensorIndex &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::MatrixDecoder | |
virtual | ~MatrixDecoder ()=default |
Permutation-based Matrix-to-Tensor converter.
Definition at line 392 of file PermutingCodec.h.
|
default |
|
inline |
Definition at line 398 of file PermutingCodec.h.
|
inline |
Definition at line 413 of file PermutingCodec.h.
|
inline |
Definition at line 412 of file PermutingCodec.h.
|
inline |
Definition at line 411 of file PermutingCodec.h.
|
overridevirtual |
Implements loco::MatrixDecoder.
Definition at line 601 of file PermutingCodec.cpp.
References loco::TensorShape::dim(), loco::Height, loco::MatrixShape::height(), loco::TensorShape::rank(), 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::PermutingDecoder< Domain::Matrix >::valid | ( | void | ) | const |
Definition at line 627 of file PermutingCodec.cpp.
|
overridevirtual |
Implements loco::MatrixDecoder.
Definition at line 615 of file PermutingCodec.cpp.
References nncc::core::ADT::tensor::Index::at(), loco::MatrixIndex::column(), loco::Height, loco::MatrixIndex::row(), loco::valid(), and loco::Width.